/** * {@inheritDoc} */ @Override public Asn1Container newMessageContainer() { return new LdapMessageContainer<MessageDecorator<? extends Message>>( this ); }
/** * {@inheritDoc} */ @Override public Asn1Container newMessageContainer() { return new LdapMessageContainer<MessageDecorator<? extends Message>>( this ); }
/** * {@inheritDoc} */ @Override public Asn1Container newMessageContainer() { return new LdapMessageContainer<MessageDecorator<? extends Message>>( this ); }
/** * 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 ); }
/** * 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 ); }
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, new SchemaBinaryAttributeDetector( schemaManager ) ) );
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, new SchemaBinaryAttributeDetector( schemaManager ) ) );
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, new SchemaBinaryAttributeDetector( schemaManager ) ) );
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, atDetector ) );
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, atDetector ) );
new LdapMessageContainer<MessageDecorator<? extends Message>>( codec, atDetector ) );
/** * 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 */ public void sessionCreated( IoSession session ) throws Exception { // First, create a new LdapSession and store it i the manager LdapSession ldapSession = new LdapSession( session ); ldapServer.getLdapSessionManager().addLdapSession( ldapSession ); // Now, we have to store the DirectoryService instance into the session session.setAttribute( LdapDecoder.MAX_PDU_SIZE_ATTR, ldapServer.getDirectoryService().getMaxPDUSize() ); // Last, store the message container LdapMessageContainer<? extends MessageDecorator<Message>> ldapMessageContainer = new LdapMessageContainer<MessageDecorator<Message>>( ldapServer.getDirectoryService().getLdapCodecService(), new SchemaBinaryAttributeDetector( ldapServer.getDirectoryService().getSchemaManager() ) ); session.setAttribute( LdapDecoder.MESSAGE_CONTAINER_ATTR, ldapMessageContainer ); }