Class LDAPResponse
java.lang.Object
com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPResponse
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LDAPExtendedResponse
@Extensible
@NotMutable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public class LDAPResponse
extends Object
implements Serializable
This class provides a data structure that represents a response that may be
received from a directory server.
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
This class is primarily intended to be used in the process of updating applications which use the Netscape Directory SDK for Java to switch to or coexist with the UnboundID LDAP SDK for Java. For applications not written using the Netscape Directory SDK for Java, the
LDAPResult class
should be used instead.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLDAPResponse(LDAPResult ldapResult) Creates a new LDAP response from the providedLDAPResult. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the list of controls for this LDAP response, if any.Retrieves the error message for this LDAP response, if available.Retrieves the matched DN for this LDAP response, if available.intRetrieves the LDAP message ID for this LDAP response.String[]Retrieves the set of referrals for this LDAP response, if any.intRetrieves the result code for this LDAP response.final LDAPResultRetrieves anLDAPResultobject that is the equivalent of this LDAP response.toString()Retrieves a string representation of this LDAP response.
-
Constructor Details
-
LDAPResponse
Creates a new LDAP response from the providedLDAPResult.- Parameters:
ldapResult- TheLDAPResultobject to use to create this LDAP response.
-
-
Method Details
-
getMessageID
Retrieves the LDAP message ID for this LDAP response.- Returns:
- The LDAP message ID for this LDAP response.
-
getResultCode
Retrieves the result code for this LDAP response.- Returns:
- The result code for this LDAP response.
-
getErrorMessage
Retrieves the error message for this LDAP response, if available.- Returns:
- The error message for this LDAP response, or
nullif there is none.
-
getMatchedDN
Retrieves the matched DN for this LDAP response, if available.- Returns:
- The matched DN for this LDAP response, or
nullif there is none.
-
getReferrals
Retrieves the set of referrals for this LDAP response, if any.- Returns:
- The set of referrals for this LDAP response, or
nullif there are none.
-
getControls
Retrieves the list of controls for this LDAP response, if any.- Returns:
- The list of controls for this LDAP response, or
nullif there are none.
-
toLDAPResult
Retrieves anLDAPResultobject that is the equivalent of this LDAP response.- Returns:
- An
LDAPResultobject that is the equivalent of this LDAP response.
-
toString
Retrieves a string representation of this LDAP response.
-