T - type of ldap result contained in this responsepublic class Response<T> extends java.lang.Object implements ResponseMessage
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
matchedDn
Response matched DN.
|
private java.lang.String |
message
Response message.
|
private int |
messageId
Message ID.
|
private java.lang.String[] |
referralURLs
Referral URLs.
|
private ResponseControl[] |
responseControls
Response controls.
|
private T |
result
Operation response.
|
private ResultCode |
resultCode
Operation result code.
|
| Constructor and Description |
|---|
Response(T t,
ResultCode rc)
Creates a new ldap response.
|
Response(T t,
ResultCode rc,
java.lang.String msg,
java.lang.String dn,
ResponseControl[] c,
java.lang.String[] urls,
int id)
Creates a new ldap response.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseControl |
getControl(java.lang.String oid)
Returns the first response control with the supplied OID for this response message.
|
ResponseControl[] |
getControls()
Returns the controls for this message.
|
java.lang.String |
getMatchedDn()
Returns the matched DN produced by the ldap operation.
|
java.lang.String |
getMessage()
Returns any error or diagnostic message produced by the ldap operation.
|
int |
getMessageId()
Returns the message ID for this response message.
|
java.lang.String[] |
getReferralURLs()
Returns the referral URLs produced by the ldap operation.
|
T |
getResult()
Returns the result of the ldap operation.
|
ResultCode |
getResultCode()
Returns the result code of the ldap operation.
|
java.lang.String |
toString() |
private final T result
private final ResultCode resultCode
private final java.lang.String message
private final java.lang.String matchedDn
private final ResponseControl[] responseControls
private final java.lang.String[] referralURLs
private final int messageId
public Response(T t, ResultCode rc)
t - response typerc - result codepublic Response(T t, ResultCode rc, java.lang.String msg, java.lang.String dn, ResponseControl[] c, java.lang.String[] urls, int id)
t - response typerc - result codemsg - result messagedn - matched dnc - response controlsurls - referral urlsid - message idpublic T getResult()
public ResultCode getResultCode()
public java.lang.String getMessage()
public java.lang.String getMatchedDn()
public ResponseControl[] getControls()
MessagegetControls in interface Message<ResponseControl>public ResponseControl getControl(java.lang.String oid)
ResponseMessagegetControl in interface ResponseMessageoid - of the response control to returnpublic java.lang.String[] getReferralURLs()
public int getMessageId()
ResponseMessagegetMessageId in interface ResponseMessagepublic java.lang.String toString()
toString in class java.lang.Object