|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.AbstractAsn1Object
org.apache.directory.shared.ldap.codec.LdapMessageCodec
org.apache.directory.shared.ldap.codec.LdapResponseCodec
public abstract class LdapResponseCodec
A generic LdapResponse Object. It will contain the LdapResult.
Field Summary |
---|
Fields inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
---|
ldapMessageLength |
Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
parent |
Constructor Summary | |
---|---|
LdapResponseCodec()
Creates a new LdapResponse object. |
Method Summary | |
---|---|
int |
computeLdapResultLength()
Compute the LdapResponse length |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the AddResponse message to a PDU. |
int |
getLdapResponseLength()
|
LdapResultCodec |
getLdapResult()
Get the LdapResult |
void |
setLdapResult(LdapResultCodec ldapResult)
Set the ldap result |
java.lang.String |
toString()
Get a String representation of an Response |
Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessageCodec |
---|
addControl, addControls, computeLength, computeLengthProtocolOp, encode, encodeProtocolOp, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, getMessageType, getMessageTypeName, initControls, setMessageId, toString |
Methods inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
---|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LdapResponseCodec()
Method Detail |
---|
public LdapResultCodec getLdapResult()
public void setLdapResult(LdapResultCodec ldapResult)
ldapResult
- The ldapResult to set.public int getLdapResponseLength()
public int computeLdapResultLength()
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws EncoderException
encode
in interface Asn1Object
encode
in class AbstractAsn1Object
buffer
- The buffer where to put the PDU
EncoderException
- if the buffer can't be encodedpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |