/** * {@inheritDoc} */ @Override public CompareRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
dnBytes = Strings.getBytesUtf8( getName().getName() ); compareRequestLength = 1 + TLV.getNbBytes( dnBytes.length ) + dnBytes.length; attrIdBytes = Strings.getBytesUtf8( getAttributeId() ); avaLength = 1 + TLV.getNbBytes( attrIdBytes.length ) + attrIdBytes.length; attrValBytes = getAssertionValue().getBytes(); avaLength += 1 + TLV.getNbBytes( attrValBytes.length ) + attrValBytes.length;
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<CompareRequestDecorator> container ) { // Now, we can allocate the CompareRequest Object CompareRequest internalCompareRequest = new CompareRequestImpl(); internalCompareRequest.setMessageId( container.getMessageId() ); CompareRequestDecorator compareRequest = new CompareRequestDecorator( container.getLdapCodecService(), internalCompareRequest ); container.setMessage( compareRequest ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05120_COMPARE_REQUEST ) ); } } }
dnBytes = Strings.getBytesUtf8( getName().getName() ); compareRequestLength = 1 + TLV.getNbBytes( dnBytes.length ) + dnBytes.length; attrIdBytes = Strings.getBytesUtf8( getAttributeId() ); avaLength = 1 + TLV.getNbBytes( attrIdBytes.length ) + attrIdBytes.length; attrValBytes = getAssertionValue().getBytes(); avaLength += 1 + TLV.getNbBytes( attrValBytes.length ) + attrValBytes.length;
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<CompareRequestDecorator> container ) { // Now, we can allocate the CompareRequest Object CompareRequest internalCompareRequest = new CompareRequestImpl(); internalCompareRequest.setMessageId( container.getMessageId() ); CompareRequestDecorator compareRequest = new CompareRequestDecorator( container.getLdapCodecService(), internalCompareRequest ); container.setMessage( compareRequest ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05120_COMPARE_REQUEST ) ); } } }
dnBytes = Strings.getBytesUtf8( getName().getName() ); compareRequestLength = 1 + TLV.getNbBytes( dnBytes.length ) + dnBytes.length; attrIdBytes = Strings.getBytesUtf8( getAttributeId() ); avaLength = 1 + TLV.getNbBytes( attrIdBytes.length ) + attrIdBytes.length; attrValBytes = getAssertionValue().getBytes(); avaLength += 1 + TLV.getNbBytes( attrValBytes.length ) + attrValBytes.length;
/** * {@inheritDoc} */ @Override public CompareRequest setAssertionValue( String value ) { getDecorated().setAssertionValue( value ); return this; }
/** * {@inheritDoc} */ @Override public void action( LdapMessageContainer<CompareRequestDecorator> container ) { // Now, we can allocate the CompareRequest Object CompareRequest internalCompareRequest = new CompareRequestImpl(); internalCompareRequest.setMessageId( container.getMessageId() ); CompareRequestDecorator compareRequest = new CompareRequestDecorator( container.getLdapCodecService(), internalCompareRequest ); container.setMessage( compareRequest ); if ( LOG.isDebugEnabled() ) { LOG.debug( I18n.msg( I18n.MSG_05120_COMPARE_REQUEST ) ); } } }
/** * {@inheritDoc} */ @Override public String getAttributeId() { return getDecorated().getAttributeId(); }
decorator = new CompareRequestDecorator( codec, ( CompareRequest ) decoratedMessage ); break;
/** * {@inheritDoc} */ @Override public CompareRequest setName( Dn name ) { getDecorated().setName( name ); return this; }
decorator = new CompareRequestDecorator( codec, ( CompareRequest ) decoratedMessage ); break;
/** * {@inheritDoc} */ @Override public Dn getName() { return getDecorated().getName(); }
decorator = new CompareRequestDecorator( codec, ( CompareRequest ) decoratedMessage ); break;
/** * {@inheritDoc} */ @Override public CompareRequest setAssertionValue( byte[] value ) { getDecorated().setAssertionValue( value ); return this; }
/** * {@inheritDoc} */ @Override public CompareRequest setAttributeId( String attrId ) { getDecorated().setAttributeId( attrId ); return this; }
/** * {@inheritDoc} */ @Override public Value getAssertionValue() { return getDecorated().getAssertionValue(); }
/** * {@inheritDoc} */ @Override public CompareRequest setAttributeId( String attrId ) { getDecorated().setAttributeId( attrId ); return this; }
/** * {@inheritDoc} */ @Override public Value getAssertionValue() { return getDecorated().getAssertionValue(); }
/** * {@inheritDoc} */ @Override public CompareRequest setAssertionValue( String value ) { getDecorated().setAssertionValue( value ); return this; }