public class SearchResultEntryCodec extends LdapMessageCodec
ldapMessageLengthparent| Constructor and Description |
|---|
SearchResultEntryCodec()
Creates a new SearchResultEntry object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttributeValue(Object value)
Add a new value to the current attribute
|
void |
addAttributeValues(String type)
Create a new attributeValue
|
protected int |
computeLengthProtocolOp()
Compute the SearchResultEntry length
SearchResultEntry :
|
protected void |
encodeProtocolOp(ByteBuffer buffer)
Encode the SearchResultEntry message to a PDU.
|
String |
getCurrentAttributeValueType() |
Entry |
getEntry()
Get the entry.
|
MessageTypeEnum |
getMessageType()
Get the message type
|
String |
getMessageTypeName()
Get the message type Name
|
DN |
getObjectName()
Get the entry DN
|
void |
setEntry(Entry entry)
Sets the entry.
|
void |
setObjectName(DN objectName)
Set the entry DN.
|
String |
toString()
Returns the Search Result Entry string
|
addControl, addControls, computeLength, encode, getCodecControl, getControls, getControls, getCurrentControl, getMessageId, initControls, setMessageId, toStringaddLength, encode, getCurrentLength, getExpectedLength, getParent, getTlvId, setCurrentLength, setExpectedLength, setParentpublic SearchResultEntryCodec()
public MessageTypeEnum getMessageType()
getMessageType in class LdapMessageCodecpublic String getMessageTypeName()
getMessageTypeName in class LdapMessageCodecpublic DN getObjectName()
public void setObjectName(DN objectName)
objectName - The objectName to set.public Entry getEntry()
public void setEntry(Entry entry)
entry - the entrypublic void addAttributeValues(String type)
type - The attribute's namepublic void addAttributeValue(Object value)
value - protected int computeLengthProtocolOp()
0x64 L1
|
+--> 0x04 L2 objectName
+--> 0x30 L3 (attributes)
|
+--> 0x30 L4-1 (partial attributes list)
| |
| +--> 0x04 L5-1 type
| +--> 0x31 L6-1 (values)
| |
| +--> 0x04 L7-1-1 value
| +--> ...
| +--> 0x04 L7-1-n value
|
+--> 0x30 L4-2 (partial attributes list)
| |
| +--> 0x04 L5-2 type
| +--> 0x31 L6-2 (values)
| |
| +--> 0x04 L7-2-1 value
| +--> ...
| +--> 0x04 L7-2-n value
|
+--> ...
|
+--> 0x30 L4-m (partial attributes list)
|
+--> 0x04 L5-m type
+--> 0x31 L6-m (values)
|
+--> 0x04 L7-m-1 value
+--> ...
+--> 0x04 L7-m-n value
computeLengthProtocolOp in class LdapMessageCodecprotected void encodeProtocolOp(ByteBuffer buffer) throws EncoderException
0x64 LL
0x04 LL objectName
0x30 LL attributes
0x30 LL partialAttributeList
0x04 LL type
0x31 LL vals
0x04 LL attributeValue
...
0x04 LL attributeValue
...
0x30 LL partialAttributeList
0x04 LL type
0x31 LL vals
0x04 LL attributeValue
...
0x04 LL attributeValue
encodeProtocolOp in class LdapMessageCodecbuffer - The buffer where to put the PDUEncoderExceptionpublic String toString()
public String getCurrentAttributeValueType()
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.