|
||||||||||
| 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.LdapResultCodec
public class LdapResultCodec
A ldapObject to store the LdapResult
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.asn1.AbstractAsn1Object |
|---|
parent |
| Constructor Summary | |
|---|---|
LdapResultCodec()
Creates a new LdapResult object. |
|
| Method Summary | |
|---|---|
void |
addReferral(LdapURL referral)
Add a referral |
int |
computeLength()
Compute the LdapResult length LdapResult : 0x0A 01 resultCode (0..80) 0x04 L1 matchedDN (L1 = Length(matchedDN)) 0x04 L2 errorMessage (L2 = Length(errorMessage)) [0x83 L3] referrals | +--> 0x04 L4 referral +--> 0x04 L5 referral +--> ... |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the LdapResult message to a PDU. |
java.lang.String |
getErrorMessage()
Get the error message |
java.lang.String |
getMatchedDN()
Get the matched DN |
java.util.List<LdapURL> |
getReferrals()
Get the referrals |
ResultCodeEnum |
getResultCode()
Get the result code |
void |
initReferrals()
Initialize the referrals list |
void |
setErrorMessage(java.lang.String errorMessage)
Set the error message |
void |
setMatchedDN(LdapDN matchedDN)
Set the Matched DN |
void |
setResultCode(ResultCodeEnum resultCode)
Set the result code |
java.lang.String |
toString()
Get a String representation of a LdapResult |
| 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 LdapResultCodec()
| Method Detail |
|---|
public void initReferrals()
public java.lang.String getErrorMessage()
public void setErrorMessage(java.lang.String errorMessage)
errorMessage - The errorMessage to set.public java.lang.String getMatchedDN()
public void setMatchedDN(LdapDN matchedDN)
matchedDN - The matchedDN to set.public java.util.List<LdapURL> getReferrals()
public void addReferral(LdapURL referral)
referral - The referral to add.public ResultCodeEnum getResultCode()
public void setResultCode(ResultCodeEnum resultCode)
resultCode - The resultCode to set.public int computeLength()
computeLength in interface Asn1ObjectcomputeLength in class AbstractAsn1Object
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws EncoderException
encode in interface Asn1Objectencode in class AbstractAsn1Objectbuffer - The buffer where to put the PDU
EncoderExceptionpublic 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 | |||||||||