/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the ExtensibleMatch Filter Filter extensibleMatchFilter = new ExtensibleMatchFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( extensibleMatchFilter ); searchRequestDecorator.setTerminalFilter( extensibleMatchFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05146_INITIALIZE_EXT_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the ExtensibleMatch Filter Filter extensibleMatchFilter = new ExtensibleMatchFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( extensibleMatchFilter ); searchRequestDecorator.setTerminalFilter( extensibleMatchFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05146_INITIALIZE_EXT_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the ExtensibleMatch Filter Filter extensibleMatchFilter = new ExtensibleMatchFilter( container.getTlvId() ); searchRequestDecorator.addCurrentFilter( extensibleMatchFilter ); searchRequestDecorator.setTerminalFilter( extensibleMatchFilter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05146_INITIALIZE_EXT_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.GREATER_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05147_INITIALIZE_GEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.EQUALITY_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05145_INITIALIZE_EQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.APPROX_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05142_INITIALIZE_APPROX_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.LESS_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05148_INITIALIZE_LEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.APPROX_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05142_INITIALIZE_APPROX_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.EQUALITY_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05145_INITIALIZE_EQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.GREATER_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05147_INITIALIZE_GEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.GREATER_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05147_INITIALIZE_GEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.LESS_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05148_INITIALIZE_LEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.LESS_OR_EQUAL_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05148_INITIALIZE_LEQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.APPROX_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05142_INITIALIZE_APPROX_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); // We can allocate the Attribute Value Assertion Filter filter = new AttributeValueAssertionFilter( container.getTlvId(), LdapCodecConstants.EQUALITY_MATCH_FILTER ); searchRequestDecorator.addCurrentFilter( filter ); // Store the filter structure that still has to be // fulfilled searchRequestDecorator.setTerminalFilter( filter ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05145_INITIALIZE_EQ_FILTER ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) { SearchRequestDecorator decorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) decorator.getTerminalFilter(); byte[] value = tlv.getValue().getData(); extensibleMatchFilter.setMatchValue( new Value( value ) ); // unstack the filters if needed decorator.unstackFilters( container ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05156_STORED_MATCH_VALUE, value ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) { SearchRequestDecorator decorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) decorator.getTerminalFilter(); byte[] value = tlv.getValue().getData(); extensibleMatchFilter.setMatchValue( new Value( value ) ); // unstack the filters if needed decorator.unstackFilters( container ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05156_STORED_MATCH_VALUE, value ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) { SearchRequestDecorator decorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) decorator.getTerminalFilter(); byte[] value = tlv.getValue().getData(); extensibleMatchFilter.setMatchValue( new Value( value ) ); // unstack the filters if needed decorator.unstackFilters( container ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05156_STORED_MATCH_VALUE, value ) ); } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. SubstringFilter substringFilter = ( SubstringFilter ) searchRequestDecorator.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05154_EMPTY_SUBSTRING_INITIAL_FILTER_PDU ); LOG.error( msg ); throw new DecoderException( msg ); } substringFilter.setInitialSubstrings( Strings.utf8ToString( tlv.getValue().getData() ) ); // We now have to get back to the nearest filter which is // not terminal. searchRequestDecorator.unstackFilters( container ); } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequestDecorator = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. SubstringFilter substringFilter = ( SubstringFilter ) searchRequestDecorator.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05154_EMPTY_SUBSTRING_INITIAL_FILTER_PDU ); LOG.error( msg ); throw new DecoderException( msg ); } substringFilter.setInitialSubstrings( Strings.utf8ToString( tlv.getValue().getData() ) ); // We now have to get back to the nearest filter which is // not terminal. searchRequestDecorator.unstackFilters( container ); } }