public abstract class LdapResponseCodec extends LdapMessageCodec
ldapMessageLength
parent
Constructor and Description |
---|
LdapResponseCodec()
Creates a new LdapResponse object.
|
Modifier and Type | Method and Description |
---|---|
int |
computeLdapResultLength()
Compute the LdapResponse length
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the AddResponse message to a PDU.
|
int |
getLdapResponseLength() |
LdapResultCodec |
getLdapResult()
Get the LdapResult
|
void |
setLdapResult(LdapResultCodec ldapResult)
Set the ldap result
|
String |
toString()
Get a String representation of an Response
|
addControl, addControls, computeLength, computeLengthProtocolOp, encode, encodeProtocolOp, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, getMessageType, getMessageTypeName, initControls, setMessageId, toString
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public LdapResultCodec getLdapResult()
public void setLdapResult(LdapResultCodec ldapResult)
ldapResult
- The ldapResult to set.public int getLdapResponseLength()
public int computeLdapResultLength()
public ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDUEncoderException
- if the buffer can't be encodedCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.