/** * Retrieves the connection options that should be used for connections * created for use with this tool. * * @return The connection options that should be used for connections created * for use with this tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); return options; }
/** * Retrieves the connection options that should be used for connections * created for use with this tool. * * @return The connection options that should be used for connections created * for use with this tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); return options; }
/** * Retrieves the connection options that should be used for connections * created for use with this tool. * * @return The connection options that should be used for connections created * for use with this tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); return options; }
/** * Retrieves the connection options that should be used for connections that * are created with this command line tool. Subclasses may override this * method to use a custom set of connection options. * * @return The connection options that should be used for connections that * are created with this command line tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); options.setResponseTimeoutMillis(0L); return options; }
/** * Retrieves the connection options that should be used for connections * created for use with this tool. * * @return The connection options that should be used for connections created * for use with this tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(! asynchronousMode.isPresent()); return options; }
/** * Retrieves the connection options that should be used for connections that * are created with this command line tool. Subclasses may override this * method to use a custom set of connection options. * * @return The connection options that should be used for connections that * are created with this command line tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); options.setResponseTimeoutMillis(0L); return options; }
/** * Retrieves the connection options that should be used for connections that * are created with this command line tool. Subclasses may override this * method to use a custom set of connection options. * * @return The connection options that should be used for connections that * are created with this command line tool. */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); options.setResponseTimeoutMillis(0L); return options; }
connectionOptions.setConnectTimeoutMillis(connectTimeout); connectionOptions.setCaptureConnectStackTrace(Boolean.TRUE); connectionOptions.setUseSynchronousMode(Boolean.TRUE); int numberOfTries=0; while(true){
/** * {@inheritDoc} */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); options.setFollowReferrals(followReferrals.isPresent()); options.setUnsolicitedNotificationHandler(this); return options; }
/** * {@inheritDoc} */ @Override() public LDAPConnectionOptions getConnectionOptions() { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setUseSynchronousMode(true); options.setFollowReferrals(followReferrals.isPresent()); options.setUnsolicitedNotificationHandler(this); return options; }
/** * Creates an {@link LDAPConnectionOptions} object from the information in * the provided specification. * * @param securityOptions The security options created from the JSON * specification. * * @return The {@code LDAPConnectionOptions} object that was created. */ LDAPConnectionOptions createConnectionOptions( final SecurityOptions securityOptions) { final LDAPConnectionOptions options = new LDAPConnectionOptions(); options.setFollowReferrals(followReferrals); options.setUseSchema(useSchema); options.setUseSynchronousMode(useSynchronousMode); options.setConnectTimeoutMillis(connectTimeoutMillis); options.setResponseTimeoutMillis(defaultResponseTimeoutMillis); if (securityOptions.verifyAddressInCertificate()) { options.setSSLSocketVerifier(new HostNameSSLSocketVerifier(true)); } return options; } }