/** * {@inheritDoc} */ public void action( LdapMessageContainer<MessageDecorator<? extends Message>> container ) { container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<MessageDecorator<? extends Message>> container ) { container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<MessageDecorator<? extends Message>> container ) { container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<ModifyRequestDecorator> container ) { TLV tlv = container.getCurrentTLV(); // If the length is null, we store an empty value if ( LOG.isDebugEnabled() && ( tlv.getLength() == 0 ) ) { LOG.debug( I18n.msg( I18n.MSG_05129_NO_VALS_FOR_ATTRIBUTE ) ); } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05130_SOME_VALS_NEED_DECODING ) ); } } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<ModifyRequestDecorator> container ) { TLV tlv = container.getCurrentTLV(); // If the length is null, we store an empty value if ( LOG.isDebugEnabled() && ( tlv.getLength() == 0 ) ) { LOG.debug( I18n.msg( I18n.MSG_05129_NO_VALS_FOR_ATTRIBUTE ) ); } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05130_SOME_VALS_NEED_DECODING ) ); } } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<ModifyRequestDecorator> container ) { TLV tlv = container.getCurrentTLV(); // If the length is null, we store an empty value if ( LOG.isDebugEnabled() && ( tlv.getLength() == 0 ) ) { LOG.debug( I18n.msg( I18n.MSG_05129_NO_VALS_FOR_ATTRIBUTE ) ); } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05130_SOME_VALS_NEED_DECODING ) ); } } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<MessageDecorator<? extends Message>> container ) { TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); // The Length can be null if ( expectedLength != 0 ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05100_NEW_LIST_CONTROLS_INITIALIZED ) ); } } else { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05101_NEW_EMPTY_CONTROLS_INITIALIZED ) ); } } // We can have an END transition container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<MessageDecorator<? extends Message>> container ) { TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); // The Length can be null if ( expectedLength != 0 ) { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05100_NEW_LIST_CONTROLS_INITIALIZED ) ); } } else { if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05101_NEW_EMPTY_CONTROLS_INITIALIZED ) ); } } // We can have an END transition container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { // Here, we have to inject the decoded filter into the SearchRequest SearchRequestDecorator searchRequestDecorator = container.getMessage(); SearchRequest searchRequest = searchRequestDecorator.getDecorated(); try { searchRequest.setFilter( searchRequestDecorator.getFilterNode() ); } catch ( LdapSchemaException lse ) { throw new DecoderException( lse.getMessage(), lse ); } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05158_INITIALIZE_ATT_DESC_LIST ) ); } } }
container.setGrammarEndAllowed( true );
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); String attributeDescription = null; if ( tlv.getLength() != 0 ) { attributeDescription = Strings.utf8ToString( tlv.getValue().getData() ); // If the attributeDescription is empty, we won't add it if ( !Strings.isEmpty( attributeDescription.trim() ) ) { searchRequestDecorator.getDecorated().addAttributes( attributeDescription ); } } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05159_DECODED_ATT_DESC, attributeDescription ) ); } } }
container.setGrammarEndAllowed( true );
container.setGrammarEndAllowed( true );
container.setGrammarEndAllowed( true );
container.setGrammarEndAllowed( true );
container.setGrammarEndAllowed( true );
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<BindRequestDecorator> container ) { BindRequest bindRequestMessage = container.getMessage(); TLV tlv = container.getCurrentTLV(); // We have to handle the special case of a 0 length // mechanism if ( tlv.getLength() == 0 ) { bindRequestMessage.setSaslMechanism( "" ); } else { bindRequestMessage.setSaslMechanism( Strings.utf8ToString( tlv.getValue().getData() ) ); } // We can have an END transition container.setGrammarEndAllowed( true ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05118_THE_SASL_MECHANISM_IS, bindRequestMessage.getSaslMechanism() ) ); } } }
container.setGrammarEndAllowed( true );
/** * {@inheritDoc} */ public void action( LdapMessageContainer<UnbindRequestDecorator> container ) throws DecoderException { // Create the UnbindRequest LdapMessage instance and store it in the container UnbindRequest unbindRequestInternal = new UnbindRequestImpl(); unbindRequestInternal.setMessageId( container.getMessageId() ); UnbindRequestDecorator unbindRequest = new UnbindRequestDecorator( container.getLdapCodecService(), unbindRequestInternal ); container.setMessage( unbindRequest ); TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); // The Length should be null if ( expectedLength != 0 ) { LOG.error( I18n.err( I18n.ERR_05130_NON_NULL_UNBIND_LENGTH, Integer.valueOf( expectedLength ) ) ); // This will generate a PROTOCOL_ERROR throw new DecoderException( I18n.err( I18n.ERR_05131_UNBIND_REQUEST_LENGTH_MUST_BE_NULL ) ); } // We can quit now container.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<UnbindRequestDecorator> container ) throws DecoderException { // Create the UnbindRequest LdapMessage instance and store it in the container UnbindRequest unbindRequestInternal = new UnbindRequestImpl(); unbindRequestInternal.setMessageId( container.getMessageId() ); UnbindRequestDecorator unbindRequest = new UnbindRequestDecorator( container.getLdapCodecService(), unbindRequestInternal ); container.setMessage( unbindRequest ); TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); // The Length should be null if ( expectedLength != 0 ) { LOG.error( I18n.err( I18n.ERR_05130_NON_NULL_UNBIND_LENGTH, Integer.valueOf( expectedLength ) ) ); // This will generate a PROTOCOL_ERROR throw new DecoderException( I18n.err( I18n.ERR_05131_UNBIND_REQUEST_LENGTH_MUST_BE_NULL ) ); } // We can quit now container.setGrammarEndAllowed( true ); } }