/** * {@inheritDoc} */ @Override public BinaryAttributeDetector getBinaryAttributeDetector() { if ( config != null ) { return config.getBinaryAttributeDetector(); } else { return null; } }
/** * {@inheritDoc} */ @Override public BinaryAttributeDetector getBinaryAttributeDetector() { if ( config != null ) { return config.getBinaryAttributeDetector(); } else { return null; } }
/** * {@inheritDoc} */ @Override public BinaryAttributeDetector getBinaryAttributeDetector() { if ( config != null ) { return config.getBinaryAttributeDetector(); } else { return null; } }
/** * {@inheritDoc} */ @Override public LdapConnection configureConnection( LdapConnection connection ) { connection.setTimeOut( timeout ); connection.setBinaryAttributeDetector( connectionConfig.getBinaryAttributeDetector() ); return connection; }
/** * This method is called when a new session is created. We will store some * informations that the session will need to process incoming requests. * * @param session the newly created session */ @Override public void sessionCreated( IoSession session ) throws Exception { // Last, store the message container LdapMessageContainer<? extends MessageDecorator<Message>> ldapMessageContainer = new LdapMessageContainer<>( codec, config.getBinaryAttributeDetector() ); session.setAttribute( LdapDecoder.MESSAGE_CONTAINER_ATTR, ldapMessageContainer ); connected.set( true ); }
/** * {@inheritDoc} */ @Override public LdapConnection configureConnection( LdapConnection connection ) { connection.setTimeOut( timeout ); connection.setBinaryAttributeDetector( connectionConfig.getBinaryAttributeDetector() ); return connection; }
/** * {@inheritDoc} */ @Override public LdapConnection configureConnection( LdapConnection connection ) { connection.setTimeOut( timeout ); connection.setBinaryAttributeDetector( connectionConfig.getBinaryAttributeDetector() ); return connection; }
/** * This method is called when a new session is created. We will store some * informations that the session will need to process incoming requests. * * @param session the newly created session */ @Override public void sessionCreated( IoSession session ) throws Exception { // Last, store the message container LdapMessageContainer<? extends MessageDecorator<Message>> ldapMessageContainer = new LdapMessageContainer<>( codec, config.getBinaryAttributeDetector() ); session.setAttribute( LdapDecoder.MESSAGE_CONTAINER_ATTR, ldapMessageContainer ); connected.set( true ); }
/** * This method is called when a new session is created. We will store some * informations that the session will need to process incoming requests. * * @param session the newly created session */ @Override public void sessionCreated( IoSession session ) throws Exception { // Last, store the message container LdapMessageContainer<? extends MessageDecorator<Message>> ldapMessageContainer = new LdapMessageContainer<>( codec, config.getBinaryAttributeDetector() ); session.setAttribute( LdapDecoder.MESSAGE_CONTAINER_ATTR, ldapMessageContainer ); connected.set( true ); }
/** * Creates a new LdapNetworkConnection instance * * @param config The configuration to use * @param ldapApiService The LDAP API Service to use */ public LdapNetworkConnection( LdapConnectionConfig config, LdapApiService ldapApiService ) { super( ldapApiService ); this.config = config; if ( config.getBinaryAttributeDetector() == null ) { config.setBinaryAttributeDetector( new DefaultConfigurableBinaryAttributeDetector() ); } this.timeout = config.getTimeout(); }
/** * Creates a new LdapNetworkConnection instance * * @param config The configuration to use * @param ldapApiService The LDAP API Service to use */ public LdapNetworkConnection( LdapConnectionConfig config, LdapApiService ldapApiService ) { super( ldapApiService ); this.config = config; if ( config.getBinaryAttributeDetector() == null ) { config.setBinaryAttributeDetector( new DefaultConfigurableBinaryAttributeDetector() ); } this.timeout = config.getTimeout(); }
/** * Creates a new LdapNetworkConnection instance * * @param config The configuration to use * @param ldapApiService The LDAP API Service to use */ public LdapNetworkConnection( LdapConnectionConfig config, LdapApiService ldapApiService ) { super( ldapApiService ); this.config = config; if ( config.getBinaryAttributeDetector() == null ) { config.setBinaryAttributeDetector( new DefaultConfigurableBinaryAttributeDetector() ); } this.timeout = config.getTimeout(); }