T
- type of ldap result contained in this responsepublic class Response<T> extends Object implements ResponseMessage
Modifier and Type | Field and Description |
---|---|
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.
|
private String |
matchedDn
Response matched DN.
|
private String |
message
Response message.
|
private int |
messageId
Message ID.
|
private 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,
String msg,
String dn,
ResponseControl[] c,
String[] urls,
int id)
Creates a new ldap response.
|
Modifier and Type | Method and Description |
---|---|
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() |
public static final String ENCODE_CNTRL_CHARS
protected static boolean encodeCntrlChars
private final T result
private final ResultCode resultCode
private final String message
private final String matchedDn
private final ResponseControl[] responseControls
private final String[] referralURLs
private final int messageId
public Response(T t, ResultCode rc)
t
- response typerc
- result codepublic 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 idpublic T getResult()
public ResultCode getResultCode()
public String getMessage()
public String getMatchedDn()
public ResponseControl[] getControls()
Message
getControls
in interface Message<ResponseControl>
public ResponseControl getControl(String oid)
ResponseMessage
getControl
in interface ResponseMessage
oid
- of the response control to returnpublic String[] getReferralURLs()
public int getMessageId()
ResponseMessage
getMessageId
in interface ResponseMessage
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.