public class LdapResultCodec extends AbstractAsn1Object
parent| Constructor and Description |
|---|
LdapResultCodec()
Creates a new LdapResult object.
|
| Modifier and Type | Method and Description |
|---|---|
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
+--> ...
|
ByteBuffer |
encode(ByteBuffer buffer)
Encode the LdapResult message to a PDU.
|
String |
getErrorMessage()
Get the error message
|
String |
getMatchedDN()
Get the matched DN
|
List<LdapURL> |
getReferrals()
Get the referrals
|
ResultCodeEnum |
getResultCode()
Get the result code
|
void |
initReferrals()
Initialize the referrals list
|
void |
setErrorMessage(String errorMessage)
Set the error message
|
void |
setMatchedDN(DN matchedDN)
Set the Matched DN
|
void |
setResultCode(ResultCodeEnum resultCode)
Set the result code
|
String |
toString()
Get a String representation of a LdapResult
|
addLength, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic void initReferrals()
public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage - The errorMessage to set.public String getMatchedDN()
public void setMatchedDN(DN matchedDN)
matchedDN - The matchedDN to set.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 AbstractAsn1Objectpublic ByteBuffer encode(ByteBuffer buffer) throws EncoderException
encode in interface Asn1Objectencode in class AbstractAsn1Objectbuffer - The buffer where to put the PDUEncoderException - if the buffer can't be encodedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.