public interface Response
Modifier and Type | Method and Description |
---|---|
Response |
addControl(Control control)
Adds the provided control to this response.
|
boolean |
containsControl(String oid)
Returns
true if this response contains the specified response
control. |
<C extends Control> |
getControl(ControlDecoder<C> decoder,
DecodeOptions options)
Decodes and returns the first control in this response having an OID
corresponding to the provided control decoder.
|
List<Control> |
getControls()
Returns a
List containing the controls included with this
response. |
Response addControl(Control control)
control
- The control to be added.UnsupportedOperationException
- If this response does not permit controls to be added.NullPointerException
- If control
was null
.boolean containsControl(String oid)
true
if this response contains the specified response
control.oid
- The numeric OID of the response control.true
if this response contains the specified response
control.<C extends Control> C getControl(ControlDecoder<C> decoder, DecodeOptions options) throws DecodeException
C
- The type of control to be decoded and returned.decoder
- The control decoder.options
- The set of decode options which should be used when decoding
the control.null
if the control is not
included with this response.DecodeException
- 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).NullPointerException
- If decoder
or options
was null
.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.Copyright 2010-2017 ForgeRock AS.