Class JDAPResult

java.lang.Object
netscape.ldap.client.opers.JDAPResult
Direct Known Subclasses:
JDAPAddResponse, JDAPBindResponse, JDAPCompareResponse, JDAPDeleteResponse, JDAPExtendedResponse, JDAPModifyRDNResponse, JDAPModifyResponse, JDAPSearchResult

public class JDAPResult extends Object
This class implements the ldap result where stores the request status. It is the base class for all the response except search response. This object is sent from the server to the client interface.
 LDAPResult ::= SEQUENCE {
   resultCode ENUMERATED {
     success (0),
     ...
   },
   matchedDN LDAPDN,
   errorMessage LDAPString
 }
 
Note that LDAPv3 supports referral within the LDAP Result. The added component is:
 LDAPResult ::= SEQUENCE {
   ...
   errorMessage LDAPString,
   referral [3] Referral OPTIONAL
 }
 
  • Field Details

  • Constructor Details

  • Method Details

    • getResultCode

      public int getResultCode()
      Gets the result code.
      Returns:
      result code
    • getMatchedDN

      public String getMatchedDN()
      Gets the matched dn.
      Returns:
      matched dn
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Returns:
      error message
    • getReferrals

      public String[] getReferrals()
      Retrieves referrals from the LDAP Result.
      Returns:
      list of referrals in URL format
    • getBERElement

      public BERElement getBERElement()
      Retrieves the ber representation of the result.
      Returns:
      ber representation of the result
    • getParamString

      public String getParamString()
      Retrieves string representation of the result. Usually, the inherited class calls this to retrieve the parameter string.
      Returns:
      string representation
    • toString

      public String toString()
      Retrieves string representation of the result.
      Overrides:
      toString in class Object
      Returns:
      string representation