Class 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 Detail

      • m_object_name

        protected java.lang.String m_object_name
        Internal variables
    • 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

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

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