|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.Response<T>
org.ldaptive.async.FutureResponse<T>
T - type of ldap result contained in this responsepublic class FutureResponse<T>
Response that blocks on each property until it is available.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.Response |
|---|
ENCODE_CNTRL_CHARS, encodeCntrlChars |
| Constructor Summary | |
|---|---|
FutureResponse(Future<Response<T>> f)
Creates a new future ldap response. |
|
| Method Summary | |
|---|---|
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. |
protected Response<T> |
getResponse()
Invokes Future.get(), waiting until the response is returned. |
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 org.ldaptive.Response |
|---|
getControl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FutureResponse(Future<Response<T>> f)
f - future response| Method Detail |
|---|
protected Response<T> getResponse()
Future.get(), waiting until the response is returned.
IllegalStateException - if the future is interrupted or throws an
execution exceptionpublic T getResult()
getResult in class Response<T>public ResultCode getResultCode()
getResultCode in class Response<T>public String getMessage()
getMessage in class Response<T>public String getMatchedDn()
getMatchedDn in class Response<T>public ResponseControl[] getControls()
getControls in interface Message<ResponseControl>getControls in class Response<T>public String[] getReferralURLs()
getReferralURLs in class Response<T>public int getMessageId()
getMessageId in interface ResponseMessagegetMessageId in class Response<T>public String toString()
toString in class Response<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||