|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.asn1.Asn1Object
org.apache.directory.shared.ldap.codec.LdapMessage
org.apache.directory.shared.ldap.codec.search.SearchResultEntry
A SearchResultEntry Message. Its syntax is : SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } PartialAttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue } AttributeDescription ::= LDAPString AttributeValue ::= OCTET STRING It contains an entry, with all its attributes, and all the attributes values. If a search request is submited, all the results are sent one by one, followed by a searchResultDone message.
Field Summary |
Fields inherited from class org.apache.directory.shared.asn1.Asn1Object |
parent |
Constructor Summary | |
SearchResultEntry()
Creates a new SearchResultEntry object. |
Method Summary | |
void |
addAttributeValue(java.lang.Object value)
Add a new value to the current attribute |
void |
addAttributeValues(LdapString type)
Create a new attributeValue |
int |
computeLength()
Compute the SearchResultEntry length SearchResultEntry : 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 | +--> ... |
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer)
Encode the SearchResultEntry message to a PDU. |
java.lang.String |
getCurrentAttributeValueType()
|
int |
getMessageType()
Get the message type |
java.lang.String |
getObjectName()
Get the entry DN |
javax.naming.directory.Attributes |
getPartialAttributeList()
Get the entry's attributes |
void |
setObjectName(javax.naming.Name objectName)
Set the entry DN |
void |
setPartialAttributeList(javax.naming.directory.Attributes partialAttributeList)
Initialize the partial Attribute list. |
java.lang.String |
toString()
Returns the Search Result Entry string |
Methods inherited from class org.apache.directory.shared.ldap.codec.LdapMessage |
addControl, getAbandonRequest, getAddRequest, getAddResponse, getBindRequest, getBindResponse, getCompareRequest, getCompareResponse, getControls, getControls, getCurrentControl, getDelRequest, getDelResponse, getExtendedRequest, getExtendedResponse, getLdapResponse, getMessageId, getMessageTypeName, getModifyDNRequest, getModifyDNResponse, getModifyRequest, getModifyResponse, getSearchRequest, getSearchResultDone, getSearchResultEntry, getSearchResultReference, getUnBindRequest, initControl, setMessageId, setProtocolOP |
Methods inherited from class org.apache.directory.shared.asn1.Asn1Object |
addLength, getCurrentLength, getExpectedLength, getParent, setCurrentLength, setExpectedLength, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SearchResultEntry()
Method Detail |
public int getMessageType()
getMessageType
in class LdapMessage
public java.lang.String getObjectName()
public void setObjectName(javax.naming.Name objectName)
objectName
- The objectName to set.public javax.naming.directory.Attributes getPartialAttributeList()
public void setPartialAttributeList(javax.naming.directory.Attributes partialAttributeList)
public void addAttributeValues(LdapString type)
type
- The attribute's namepublic void addAttributeValue(java.lang.Object value)
value
- public int computeLength()
computeLength
in class LdapMessage
public java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer) throws org.apache.directory.shared.asn1.codec.EncoderException
encode
in class LdapMessage
buffer
- The buffer where to put the PDU
org.apache.directory.shared.asn1.codec.EncoderException
- If anything goes wrong.public java.lang.String toString()
toString
in class LdapMessage
public java.lang.String getCurrentAttributeValueType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |