/** * Encode the CompareResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The CompareResponse Tag buffer.put( LdapCodecConstants.COMPARE_RESPONSE_TAG ); buffer.put( TLV.getBytes( compareResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyDnResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_DN_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyDnResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyDnResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_DN_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyDnResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the AddResponse message to a PDU. * * @param buffer The buffer where to put the PDU * @return The encoded response * @throws EncoderException If teh encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The AddResponse Tag buffer.put( LdapCodecConstants.ADD_RESPONSE_TAG ); buffer.put( TLV.getBytes( addResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); return buffer; } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } } }
/** * Encode the CompareResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The CompareResponse Tag buffer.put( LdapCodecConstants.COMPARE_RESPONSE_TAG ); buffer.put( TLV.getBytes( compareResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyDnResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_DN_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyDnResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the DelResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The DelResponse Tag buffer.put( LdapCodecConstants.DEL_RESPONSE_TAG ); buffer.put( TLV.getBytes( deleteResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the SearchResultDone message to a PDU. * * @param buffer The buffer where to put the PDU * return The encoded response * @throws EncoderException If the encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The searchResultDone Tag buffer.put( LdapCodecConstants.SEARCH_RESULT_DONE_TAG ); buffer.put( TLV.getBytes( searchResultDoneLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the CompareResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The CompareResponse Tag buffer.put( LdapCodecConstants.COMPARE_RESPONSE_TAG ); buffer.put( TLV.getBytes( compareResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the DelResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The DelResponse Tag buffer.put( LdapCodecConstants.DEL_RESPONSE_TAG ); buffer.put( TLV.getBytes( deleteResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the ModifyResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The ModifyResponse Tag buffer.put( LdapCodecConstants.MODIFY_RESPONSE_TAG ); buffer.put( TLV.getBytes( modifyResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the DelResponse message to a PDU. * * @param buffer The buffer where to put the PDU */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The DelResponse Tag buffer.put( LdapCodecConstants.DEL_RESPONSE_TAG ); buffer.put( TLV.getBytes( deleteResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the AddResponse message to a PDU. * * @param buffer The buffer where to put the PDU * @return The encoded response * @throws EncoderException If teh encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The AddResponse Tag buffer.put( LdapCodecConstants.ADD_RESPONSE_TAG ); buffer.put( TLV.getBytes( addResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); return buffer; } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } } }
/** * Encode the SearchResultDone message to a PDU. * * @param buffer The buffer where to put the PDU * return The encoded response * @throws EncoderException If the encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The searchResultDone Tag buffer.put( LdapCodecConstants.SEARCH_RESULT_DONE_TAG ); buffer.put( TLV.getBytes( searchResultDoneLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
/** * Encode the AddResponse message to a PDU. * * @param buffer The buffer where to put the PDU * @return The encoded response * @throws EncoderException If teh encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The AddResponse Tag buffer.put( LdapCodecConstants.ADD_RESPONSE_TAG ); buffer.put( TLV.getBytes( addResponseLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); return buffer; } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } } }
/** * Encode the SearchResultDone message to a PDU. * * @param buffer The buffer where to put the PDU * return The encoded response * @throws EncoderException If the encoding failed */ @Override public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException { try { // The searchResultDone Tag buffer.put( LdapCodecConstants.SEARCH_RESULT_DONE_TAG ); buffer.put( TLV.getBytes( searchResultDoneLength ) ); // The LdapResult ( ( LdapResultDecorator ) getLdapResult() ).encode( buffer ); } catch ( BufferOverflowException boe ) { throw new EncoderException( I18n.err( I18n.ERR_08212_PDU_BUFFER_TOO_SMALL ), boe ); } return buffer; } }
( ( LdapResultDecorator ) getLdapResult() ).encode( buffer );
( ( LdapResultDecorator ) getLdapResult() ).encode( buffer );