public class SearchResultReferenceCodec extends LdapMessageCodec
ldapMessageLengthparent| Constructor and Description |
|---|
SearchResultReferenceCodec()
Creates a new SearchResultEntry object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSearchResultReference(LdapURL searchResultReference)
Add a new reference to the list.
|
protected int |
computeLengthProtocolOp()
Compute the SearchResultReference length
SearchResultReference :
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the SearchResultReference message to a PDU.
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
List<LdapURL> |
getSearchResultReferences()
Get the list of references
|
String |
toString()
Returns the Search Result Reference string
|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toStringaddLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic SearchResultReferenceCodec()
public MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic void addSearchResultReference(LdapURL searchResultReference)
searchResultReference - The search result referencepublic List<LdapURL> getSearchResultReferences()
protected int computeLengthProtocolOp()
0x73 L1 | +--> 0x04 L2 reference +--> 0x04 L3 reference +--> ... +--> 0x04 Li reference +--> ... +--> 0x04 Ln reference L1 = n*Length(0x04) + sum(Length(Li)) + sum(Length(reference[i])) Length(SearchResultReference) = Length(0x73 + Length(L1) + L1
computeLengthProtocolOp in class LdapMessageCodecprotected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
0x73 LL 0x04 LL reference [0x04 LL reference]*
encodeProtocolOp in class LdapMessageCodecbuffer - The buffer where to put the PDUEncoderExceptionCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.