|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.Response<T>
T - type of ldap result contained in this responsepublic class Response<T>
Wrapper class for all operation responses.
| Field Summary | |
|---|---|
static String |
ENCODE_CNTRL_CHARS
Property to configure the encoding of control characters in the response message. |
protected static boolean |
encodeCntrlChars
Whether to encode control characters. |
| Constructor Summary | |
|---|---|
Response(T t,
ResultCode rc)
Creates a new ldap response. |
|
Response(T t,
ResultCode rc,
String msg,
String dn,
ResponseControl[] c,
String[] urls,
int id)
Creates a new ldap response. |
|
| Method Summary | |
|---|---|
ResponseControl |
getControl(String oid)
Returns the first response control with the supplied OID for this response message. |
ResponseControl[] |
getControls()
Returns the controls for this message. |
String |
getMatchedDn()
Returns the matched DN produced by the ldap operation. |
String |
getMessage()
Returns any error or diagnostic message produced by the ldap operation. |
int |
getMessageId()
Returns the message ID for this response message. |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ENCODE_CNTRL_CHARS
protected static boolean encodeCntrlChars
| Constructor Detail |
|---|
public Response(T t,
ResultCode rc)
t - response typerc - result code
public Response(T t,
ResultCode rc,
String msg,
String dn,
ResponseControl[] c,
String[] urls,
int id)
t - response typerc - result codemsg - result messagedn - matched dnc - response controlsurls - referral urlsid - message id| Method Detail |
|---|
public T getResult()
public ResultCode getResultCode()
public String getMessage()
public String getMatchedDn()
public ResponseControl[] getControls()
getControls in interface Message<ResponseControl>public ResponseControl getControl(String oid)
getControl in interface ResponseMessageoid - of the response control to return
public String[] getReferralURLs()
public int getMessageId()
getMessageId in interface ResponseMessagepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||