/** * {@inheritDoc} */ @Override public CodecControl<SortRequest> newCodecControl() { return new SortRequestDecorator( codec ); }
/** * {@inheritDoc} */ @Override public byte[] getValue() { if ( value == null ) { try { computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); value = encode( buffer ).array(); } catch ( Exception e ) { return null; } } return value; }
/** * {@inheritDoc} */ @Override public List<SortKey> getSortKeys() { return getDecorated().getSortKeys(); }
buffer.put( TLV.getBytes( sortReqLen ) ); List<SortKey> lst = getSortKeys();
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortRequestContainer container = new SortRequestContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
/** * {@inheritDoc} */ @Override public void addSortKey( SortKey sortKey ) { getDecorated().addSortKey( sortKey ); }
buffer.put( TLV.getBytes( sortReqLen ) ); List<SortKey> lst = getSortKeys();
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortRequestContainer container = new SortRequestContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
/** * {@inheritDoc} */ @Override public byte[] getValue() { if ( value == null ) { try { computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); value = encode( buffer ).array(); } catch ( Exception e ) { return null; } } return value; }
/** * {@inheritDoc} */ @Override public CodecControl<SortRequest> newCodecControl( SortRequest control ) { return new SortRequestDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public void setSortKeys( List<SortKey> sortKeys ) { getDecorated().setSortKeys( sortKeys ); }
buffer.put( TLV.getBytes( sortReqLen ) ); List<SortKey> lst = getSortKeys();
/** * {@inheritDoc} */ @Override public Asn1Object decode( byte[] controlBytes ) throws DecoderException { ByteBuffer buffer = ByteBuffer.wrap( controlBytes ); SortRequestContainer container = new SortRequestContainer( getCodecService(), this ); DECODER.decode( buffer, container ); return this; }
@Override public void action( SortRequestContainer container ) throws DecoderException { BerValue value = container.getCurrentTLV().getValue(); String atDesc = Strings.utf8ToString( value.getData() ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05307_ATTRIBUTE_TYPE_DESC, atDesc ) ); } SortKey sk = new SortKey( atDesc ); container.setCurrentKey( sk ); container.getControl().addSortKey( sk ); container.setGrammarEndAllowed( true ); }
/** * {@inheritDoc} */ @Override public byte[] getValue() { if ( value == null ) { try { computeLength(); ByteBuffer buffer = ByteBuffer.allocate( valueLength ); value = encode( buffer ).array(); } catch ( Exception e ) { return null; } } return value; }
/** * {@inheritDoc} */ @Override public CodecControl<SortRequest> newCodecControl( SortRequest control ) { return new SortRequestDecorator( codec, control ); } }
/** * {@inheritDoc} */ @Override public void addSortKey( SortKey sortKey ) { getDecorated().addSortKey( sortKey ); }
valueLength = 0; for ( SortKey sk : getSortKeys() )