/** * {@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 searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05141_NULL_MATCHING_RULE_ASSERTION_TYPE ); LOG.error( msg ); throw new DecoderException( msg ); } else { // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); String type = Strings.utf8ToString( tlv.getValue().getData() ); extensibleMatchFilter.setType( type ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05166_STORED_TYPE_MATCHING_RULE, type ) ); } } } }
/** * {@inheritDoc} */ public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05141_NULL_MATCHING_RULE_ASSERTION_TYPE ); LOG.error( msg ); throw new DecoderException( msg ); } else { // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); String type = Strings.utf8ToString( tlv.getValue().getData() ); extensibleMatchFilter.setType( type ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05166_STORED_TYPE_MATCHING_RULE, type ) ); } } } }
SubstringFilter substringFilter = ( SubstringFilter ) searchRequest.getTerminalFilter();
SubstringFilter substringFilter = ( SubstringFilter ) decorator.getTerminalFilter();
SubstringFilter substringFilter = ( SubstringFilter ) decorator.getTerminalFilter();
SubstringFilter substringFilter = ( SubstringFilter ) searchRequest.getTerminalFilter();
ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter();
searchRequestDecorator.getTerminalFilter(); terminalFilter.setAssertion( assertion );
public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05001_EMPTY_MATCHING_RULE ); LOG.error( msg ); // It will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } else { extensibleMatchFilter.setMatchingRule( Strings.utf8ToString( tlv.getValue().getData() ) ); } } } );
public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05001_EMPTY_MATCHING_RULE ); LOG.error( msg ); // It will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } else { extensibleMatchFilter.setMatchingRule( Strings.utf8ToString( tlv.getValue().getData() ) ); } } } );
public void action( LdapMessageContainer<SearchRequestDecorator> container ) throws DecoderException { SearchRequestDecorator searchRequest = container.getMessage(); TLV tlv = container.getCurrentTLV(); // Store the value. ExtensibleMatchFilter extensibleMatchFilter = ( ExtensibleMatchFilter ) searchRequest.getTerminalFilter(); if ( tlv.getLength() == 0 ) { String msg = I18n.err( I18n.ERR_05001_EMPTY_MATCHING_RULE ); LOG.error( msg ); // It will generate a PROTOCOL_ERROR throw new DecoderException( msg ); } else { extensibleMatchFilter.setMatchingRule( Strings.utf8ToString( tlv.getValue().getData() ) ); } } } );
/** * {@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 ); } }
/** * {@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_05153_NULL_ATTRIBUTE_DESCRIPTION ); LOG.error( msg ); throw new DecoderException( msg ); } else { String type = Strings.utf8ToString( tlv.getValue().getData() ); substringFilter.setType( type ); // We now have to get back to the nearest filter which // is not terminal. searchRequestDecorator.setTerminalFilter( substringFilter ); } } }
/** * {@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_05153_NULL_ATTRIBUTE_DESCRIPTION ); LOG.error( msg ); throw new DecoderException( msg ); } else { String type = Strings.utf8ToString( tlv.getValue().getData() ); substringFilter.setType( type ); // We now have to get back to the nearest filter which // is not terminal. searchRequestDecorator.setTerminalFilter( substringFilter ); } } }
/** * {@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_05153_NULL_ATTRIBUTE_DESCRIPTION ); LOG.error( msg ); throw new DecoderException( msg ); } else { String type = Strings.utf8ToString( tlv.getValue().getData() ); substringFilter.setType( type ); // We now have to get back to the nearest filter which // is not terminal. searchRequestDecorator.setTerminalFilter( substringFilter ); } } }