/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec * @param control the sort response control */ public SortResponseContainer( LdapApiService codec, SortResponse control ) { this( codec ); decorate( control ); }
/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec */ public SortResponseContainer( LdapApiService codec ) { super(); this.codec = codec; setGrammar( SortResponseGrammar.getInstance() ); setTransition( SortResponseStates.START_STATE ); }
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override protected void setIntegerValue( int value, Asn1Container container ) { SortResponseContainer sortRespContainer = ( SortResponseContainer ) container; SortResultCode code = SortResultCode.get( value ); sortRespContainer.getControl().setSortResult( code ); sortRespContainer.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortResponseContainer container = new SortResponseContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override protected void setIntegerValue( int value, Asn1Container container ) { SortResponseContainer sortRespContainer = ( SortResponseContainer ) container; SortResultCode code = SortResultCode.get( value ); sortRespContainer.getControl().setSortResult( code ); sortRespContainer.setGrammarEndAllowed( true ); } }
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortResponseContainer container = new SortResponseContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
@Override public void action( SortResponseContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atType = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05310_ATTRIBUTE_TYPE, atType ) ); } container.getControl().setAttributeName( atType ); container.setGrammarEndAllowed( true ); } } );
/** * {@inheritDoc} */ @Override protected void setIntegerValue( int value, Asn1Container container ) { SortResponseContainer sortRespContainer = ( SortResponseContainer ) container; SortResultCode code = SortResultCode.get( value ); sortRespContainer.getControl().setSortResult( code ); sortRespContainer.setGrammarEndAllowed( true ); } }
/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec */ public SortResponseContainer( LdapApiService codec ) { super(); this.codec = codec; setGrammar( SortResponseGrammar.getInstance() ); setTransition( SortResponseStates.START_STATE ); }
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortResponseContainer container = new SortResponseContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec * @param control the sort response control */ public SortResponseContainer( LdapApiService codec, SortResponse control ) { this( codec ); decorate( control ); }
/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec */ public SortResponseContainer( LdapApiService codec ) { super(); this.codec = codec; setGrammar( SortResponseGrammar.getInstance() ); setTransition( SortResponseStates.START_STATE ); }
/** * Creates a new instance of SortResponseContainer. * * @param codec the LDAP codec * @param control the sort response control */ public SortResponseContainer( LdapApiService codec, SortResponse control ) { this( codec ); decorate( control ); }