public interface ExtendedResult extends Result
getOID() and getValue() methods respectively.| Modifier and Type | Method and Description |
|---|---|
ExtendedResult |
addControl(Control control)
Adds the provided control to this response.
|
ExtendedResult |
addReferralURI(java.lang.String uri)
Adds the provided referral URI to this result.
|
<C extends Control> |
getControl(ControlDecoder<C> decoder)
Decodes and returns the first control in this response having an OID
corresponding to the provided control decoder.
|
java.util.List<Control> |
getControls()
Returns a
List containing the controls included with this response. |
java.lang.String |
getOID()
Returns the numeric OID, if any, associated with this extended result.
|
ByteString |
getValue()
Returns the value, if any, associated with this extended result.
|
boolean |
hasValue()
Returns
true if this extended result has a value. |
ExtendedResult |
setCause(java.lang.Throwable cause)
Sets the throwable cause associated with this result if available.
|
ExtendedResult |
setDiagnosticMessage(java.lang.String message)
Sets the diagnostic message associated with this result.
|
ExtendedResult |
setMatchedDN(DN dn)
Sets the matched DN associated with this result.
|
ExtendedResult |
setResultCode(ResultCode resultCode)
Sets the result code associated with this result.
|
getCause, getDiagnosticMessage, getMatchedDN, getReferralURIs, getResultCode, isReferral, isSuccess, removeControlExtendedResult addControl(Control control) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException
addControl in interface Resultcontrol - The control to be added.java.lang.UnsupportedOperationException - If this response does not permit controls to be added.java.lang.NullPointerException - If control was null.ExtendedResult addReferralURI(java.lang.String uri) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException
addReferralURI in interface Resulturi - The referral URI to be added.java.lang.UnsupportedOperationException - If this result does not permit referrals to be added.java.lang.NullPointerException - If uri was null.java.lang.String getOID()
null if there is no OID.ByteString getValue()
null if
there is no value.boolean hasValue()
true if this extended result has a value. In some
circumstances it may be useful to determine if a extended result has a
value, without actually calculating the value and incurring any performance
costs.true if this extended result has a value, or false
if there is no value.ExtendedResult setCause(java.lang.Throwable cause) throws java.lang.UnsupportedOperationException
ExtendedResult setDiagnosticMessage(java.lang.String message) throws java.lang.UnsupportedOperationException
setDiagnosticMessage in interface Resultmessage - The diagnostic message, which may be empty or null
indicating that none was provided.java.lang.UnsupportedOperationException - If this result does not permit the diagnostic message to be set.ExtendedResult setMatchedDN(DN dn) throws java.lang.UnsupportedOperationException
setMatchedDN in interface Resultdn - The matched DN associated, which may be empty or null
indicating that none was provided.java.lang.UnsupportedOperationException - If this result does not permit the matched DN to be set.ExtendedResult setResultCode(ResultCode resultCode) throws java.lang.UnsupportedOperationException, java.lang.NullPointerException
setResultCode in interface ResultresultCode - The result code.java.lang.UnsupportedOperationException - If this result does not permit the result code to be set.java.lang.NullPointerException - If resultCode was null.<C extends Control> C getControl(ControlDecoder<C> decoder) throws java.lang.NullPointerException, PluginException
C - The type of control to be decoded and returned.decoder - The control decoder.null if the control is not included
with this response.PluginException - If the control could not be decoded because it was malformed in
some way (e.g. the control value was missing, or its content
could not be decoded).java.lang.NullPointerException - If decoder or options was null.java.util.List<Control> getControls()
List containing the controls included with this response.
The returned List may be modified if permitted by this response.List containing the controls.