Package netscape.ldap.client.opers
Class JDAPSearchResponse
- java.lang.Object
-
- netscape.ldap.client.opers.JDAPSearchResponse
-
- All Implemented Interfaces:
JDAPProtocolOp
public class JDAPSearchResponse extends java.lang.Object implements JDAPProtocolOp
This class implements the search response. This object is sent from the ldap server to the interface.entry [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes SEQUENCE OF SEQUENCE { AttributeType, SET OF AttributeValue } }
Note that the following is the LDAPv3 definition:SearchResultEntry ::= [APPLICATION 4] SEQUENCE { objectName LDAPDN, attributes PartialAttributeList } PartialAttributeList ::= SEQUENCE OF SEQUENCE { type AttributeDescription, vals SET OF AttributeValue }
- Version:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected LDAPAttribute[]
m_attributes
protected BERElement
m_element
protected java.lang.String
m_object_name
Internal variables-
Fields inherited from interface netscape.ldap.client.opers.JDAPProtocolOp
ABANDON_REQUEST, ADD_REQUEST, ADD_RESPONSE, BIND_REQUEST, BIND_RESPONSE, COMPARE_REQUEST, COMPARE_RESPONSE, DEL_REQUEST, DEL_RESPONSE, EXTENDED_REQUEST, EXTENDED_RESPONSE, MODIFY_RDN_REQUEST, MODIFY_RDN_RESPONSE, MODIFY_REQUEST, MODIFY_RESPONSE, SEARCH_REQUEST, SEARCH_RESPONSE, SEARCH_RESULT, SEARCH_RESULT_REFERENCE, UNBIND_REQUEST
-
-
Constructor Summary
Constructors Constructor Description JDAPSearchResponse(BERElement element)
Constructs search response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LDAPAttribute[]
getAttributes()
Retrieves attributesBERElement
getBERElement()
Retrieves ber representation of the result.java.lang.String
getObjectName()
Retrieves object nameint
getType()
Retrieves the protocol operation type.java.lang.String
toString()
Retrieve the string representation.
-
-
-
Field Detail
-
m_object_name
protected java.lang.String m_object_name
Internal variables
-
m_element
protected BERElement m_element
-
m_attributes
protected LDAPAttribute[] m_attributes
-
-
Constructor Detail
-
JDAPSearchResponse
public JDAPSearchResponse(BERElement element) throws java.io.IOException
Constructs search response.- Parameters:
element
- ber element of search response- Throws:
java.io.IOException
-
-
Method Detail
-
getBERElement
public BERElement getBERElement()
Retrieves ber representation of the result.- Specified by:
getBERElement
in interfaceJDAPProtocolOp
- Returns:
- ber representation
-
getObjectName
public java.lang.String getObjectName()
Retrieves object name- Returns:
- object name
-
getAttributes
public LDAPAttribute[] getAttributes()
Retrieves attributes- Returns:
- attributes
-
getType
public int getType()
Retrieves the protocol operation type.- Specified by:
getType
in interfaceJDAPProtocolOp
- Returns:
- protocol type
-
toString
public java.lang.String toString()
Retrieve the string representation.- Specified by:
toString
in interfaceJDAPProtocolOp
- Overrides:
toString
in classjava.lang.Object
- Returns:
- string representation
-
-