@Extensible @NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public class LDAPResponse extends java.lang.Object implements java.io.Serializable
LDAPResult class
should be used instead.| Constructor | Description |
|---|---|
LDAPResponse(LDAPResult ldapResult) |
Creates a new LDAP response from the provided
LDAPResult. |
| Modifier and Type | Method | Description |
|---|---|---|
LDAPControl[] |
getControls() |
Retrieves the list of controls for this LDAP response, if any.
|
java.lang.String |
getErrorMessage() |
Retrieves the error message for this LDAP response, if available.
|
java.lang.String |
getMatchedDN() |
Retrieves the matched DN for this LDAP response, if available.
|
int |
getMessageID() |
Retrieves the LDAP message ID for this LDAP response.
|
java.lang.String[] |
getReferrals() |
Retrieves the set of referrals for this LDAP response, if any.
|
int |
getResultCode() |
Retrieves the result code for this LDAP response.
|
LDAPResult |
toLDAPResult() |
Retrieves an
LDAPResult object that is the equivalent of this LDAP
response. |
java.lang.String |
toString() |
Retrieves a string representation of this LDAP response.
|
public LDAPResponse(@NotNull LDAPResult ldapResult)
LDAPResult.ldapResult - The LDAPResult object to use to create this
LDAP response.public int getMessageID()
public int getResultCode()
@Nullable public java.lang.String getErrorMessage()
null if there
is none.@Nullable public java.lang.String getMatchedDN()
null if there
is none.@Nullable public java.lang.String[] getReferrals()
null if
there are none.@Nullable public LDAPControl[] getControls()
null if
there are none.@NotNull public final LDAPResult toLDAPResult()
LDAPResult object that is the equivalent of this LDAP
response.LDAPResult object that is the equivalent of this LDAP
response.