public class SearchResultReferenceCodec extends LdapMessageCodec
ldapMessageLength
parent
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, toString
addLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParent
public SearchResultReferenceCodec()
public MessageTypeEnum getMessageType()
getMessageType
in class LdapMessageCodec
public String getMessageTypeName()
getMessageTypeName
in class LdapMessageCodec
public 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 LdapMessageCodec
protected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
0x73 LL 0x04 LL reference [0x04 LL reference]*
encodeProtocolOp
in class LdapMessageCodec
buffer
- The buffer where to put the PDUEncoderException
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.