Package netscape.ldap

Class LDAPResponse

java.lang.Object
netscape.ldap.LDAPMessage
netscape.ldap.LDAPResponse
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LDAPExtendedResponse

public class LDAPResponse extends LDAPMessage
Represents the response to a particular LDAP operation.
Version:
1.0
See Also:
  • Field Details

  • Constructor Details

    • LDAPResponse

      LDAPResponse(int msgid, JDAPProtocolOp rsp, LDAPControl[] controls)
      Constructor
      Parameters:
      msgid - message identifier
      rsp - operation response
      controls - array of controls or null
  • Method Details

    • getErrorMessage

      public String getErrorMessage()
      Returns any error message in the response.
      Returns:
      the error message of the last error (or null if no message was set).
    • getMatchedDN

      public String getMatchedDN()
      Returns the partially matched DN field, if any, in a server response.
      Returns:
      the maximal subset of a DN to match, or null.
    • getReferrals

      public String[] getReferrals()
      Returns all referrals, if any, in a server response.
      Returns:
      a list of referrals or null.
    • getResultCode

      public int getResultCode()
      Returns the result code in a server response.
      Returns:
      the result code.