/** * {@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 ) ); } } }
extensibleMatchFilter.setDnAttributes( BooleanDecoder.parse( value ) ); LOG.debug( I18n.msg( I18n.MSG_05155_DN_ATTRIBUTES, Boolean.valueOf( extensibleMatchFilter.isDnAttributes() ) ) );
/** * {@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 ) ); } } }
filter = new ExtensibleMatchFilter(); ( ( ExtensibleMatchFilter ) filter ).setType( attribute ); ( ( ExtensibleMatchFilter ) filter ).setMatchingRule( matchingRule ); ( ( ExtensibleMatchFilter ) filter ).setMatchValue( value ); ( ( ExtensibleMatchFilter ) filter ).setDnAttributes( dnAttributes );
String matchingRule = null; Value value = extFilter.getMatchValue(); if ( extFilter.getMatchingRule() != null ) matchingRule = extFilter.getMatchingRule(); branch = new ExtensibleNode( extFilter.getType(), value, matchingRule, extFilter.isDnAttributes() );
/** * {@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 ) ); } } } }
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() ) ); } } } );
filter = new ExtensibleMatchFilter(); ( ( ExtensibleMatchFilter ) filter ).setType( attribute ); ( ( ExtensibleMatchFilter ) filter ).setMatchingRule( matchingRule ); ( ( ExtensibleMatchFilter ) filter ).setMatchValue( value ); ( ( ExtensibleMatchFilter ) filter ).setDnAttributes( dnAttributes );
String matchingRule = null; Value value = extFilter.getMatchValue(); if ( extFilter.getMatchingRule() != null ) matchingRule = extFilter.getMatchingRule(); branch = new ExtensibleNode( extFilter.getType(), value, matchingRule, extFilter.isDnAttributes() );
/** * {@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 ) ); } } } }
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() ) ); } } } );
filter = new ExtensibleMatchFilter(); ( ( ExtensibleMatchFilter ) filter ).setType( attribute ); ( ( ExtensibleMatchFilter ) filter ).setMatchingRule( matchingRule ); ( ( ExtensibleMatchFilter ) filter ).setMatchValue( value ); ( ( ExtensibleMatchFilter ) filter ).setDnAttributes( dnAttributes );
String matchingRule = null; Value value = extFilter.getMatchValue(); if ( extFilter.getMatchingRule() != null ) matchingRule = extFilter.getMatchingRule(); branch = new ExtensibleNode( extFilter.getType(), value, matchingRule, extFilter.isDnAttributes() );
extensibleMatchFilter.setDnAttributes( BooleanDecoder.parse( value ) ); LOG.debug( I18n.msg( I18n.MSG_05155_DN_ATTRIBUTES, Boolean.valueOf( extensibleMatchFilter.isDnAttributes() ) ) );
/** * {@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 ) { 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 ) ); } } } }
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() ) ); } } } );
extensibleMatchFilter.setDnAttributes( BooleanDecoder.parse( value ) ); LOG.debug( I18n.msg( I18n.MSG_05155_DN_ATTRIBUTES, Boolean.valueOf( extensibleMatchFilter.isDnAttributes() ) ) );
/** * {@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 ) ); } } }