|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.decorators.LdapResultDecorator
public class LdapResultDecorator
A decorator for the LdapResultResponse message
| Constructor Summary | |
|---|---|
LdapResultDecorator(LdapResult decoratedLdapResult)
Makes a LdapResult encodable. |
|
| Method Summary | |
|---|---|
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. |
LdapCodecService |
getCodecService()
Gets the codec service responsible for managing the encoding and decoding of the decorated objects. |
LdapResult |
getDecorated()
Gets the object being decorated by this IDecorator. |
String |
getErrorMessage()
|
byte[] |
getErrorMessageBytes()
|
Dn |
getMatchedDn()
|
byte[] |
getMatchedDnBytes()
|
Referral |
getReferral()
|
ResultCodeEnum |
getResultCode()
|
boolean |
isReferral()
|
void |
setErrorMessage(String errorMessage)
|
void |
setErrorMessageBytes(byte[] errorMessageBytes)
Set the encoded message's bytes |
void |
setMatchedDn(Dn dn)
|
void |
setMatchedDnBytes(byte[] matchedDnBytes)
Sets the encoded value for MatchedDn |
void |
setReferral(Referral referral)
|
void |
setResultCode(ResultCodeEnum resultCode)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapResultDecorator(LdapResult decoratedLdapResult)
decoratedLdapResult - the decorated LdapResult| Method Detail |
|---|
public byte[] getErrorMessageBytes()
public void setErrorMessageBytes(byte[] errorMessageBytes)
errorMessageBytes - The encoded bytespublic void setMatchedDnBytes(byte[] matchedDnBytes)
matchedDnBytes - The encoded MatchedDNpublic byte[] getMatchedDnBytes()
public ResultCodeEnum getResultCode()
getResultCode in interface LdapResultpublic void setResultCode(ResultCodeEnum resultCode)
setResultCode in interface LdapResultpublic Dn getMatchedDn()
getMatchedDn in interface LdapResultpublic void setMatchedDn(Dn dn)
setMatchedDn in interface LdapResultpublic String getErrorMessage()
getErrorMessage in interface LdapResultpublic void setErrorMessage(String errorMessage)
setErrorMessage in interface LdapResultpublic boolean isReferral()
isReferral in interface LdapResultpublic Referral getReferral()
getReferral in interface LdapResultpublic void setReferral(Referral referral)
setReferral in interface LdapResultpublic String toString()
toString in class Objectpublic int computeLength()
computeLength in interface Decorator<LdapResult>
public ByteBuffer encode(ByteBuffer buffer)
throws EncoderException
encode in interface Decorator<LdapResult>buffer - The buffer where to put the PDU
EncoderException - if the buffer can't be encodedpublic LdapResult getDecorated()
getDecorated in interface Decorator<LdapResult>public LdapCodecService getCodecService()
getCodecService in interface Decorator<LdapResult>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||