/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); if ( expectedLength == 0 ) { String msg = I18n.err( I18n.ERR_05138_EMPTY_SUBSTRING_FILTER_PDU ); LOG.error( msg ); throw new DecoderException( msg ); } // We can allocate the SearchRequest Filter substringFilter = new SubstringFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( substringFilter ); searchRequestDecorator.setTerminalFilter( substringFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05152_INITIALIZE_SUBSTRING_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); if ( expectedLength == 0 ) { String msg = I18n.err( I18n.ERR_05138_EMPTY_SUBSTRING_FILTER_PDU ); LOG.error( msg ); throw new DecoderException( msg ); } // We can allocate the SearchRequest Filter substringFilter = new SubstringFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( substringFilter ); searchRequestDecorator.setTerminalFilter( substringFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05152_INITIALIZE_SUBSTRING_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); int expectedLength = tlv.getLength(); if ( expectedLength == 0 ) { String msg = I18n.err( I18n.ERR_05138_EMPTY_SUBSTRING_FILTER_PDU ); LOG.error( msg ); throw new DecoderException( msg ); } // We can allocate the SearchRequest Filter substringFilter = new SubstringFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( substringFilter ); searchRequestDecorator.setTerminalFilter( substringFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05152_INITIALIZE_SUBSTRING_FILTER ) ); } } }
filter = new SubstringFilter();