Class JDAPSearchResponse

java.lang.Object
netscape.ldap.client.opers.JDAPSearchResponse
All Implemented Interfaces:
JDAPProtocolOp

public class JDAPSearchResponse extends 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 Details

    • m_object_name

      protected String m_object_name
      Internal variables
    • m_element

      protected BERElement m_element
    • m_attributes

      protected LDAPAttribute[] m_attributes
  • Constructor Details

    • JDAPSearchResponse

      public JDAPSearchResponse(BERElement element) throws IOException
      Constructs search response.
      Parameters:
      element - ber element of search response
      Throws:
      IOException
  • Method Details

    • getBERElement

      public BERElement getBERElement()
      Retrieves ber representation of the result.
      Specified by:
      getBERElement in interface JDAPProtocolOp
      Returns:
      ber representation
    • getObjectName

      public 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 interface JDAPProtocolOp
      Returns:
      protocol type
    • toString

      public String toString()
      Retrieve the string representation.
      Specified by:
      toString in interface JDAPProtocolOp
      Overrides:
      toString in class Object
      Returns:
      string representation