public interface ProtocolOp
Modifier and Type | Method and Description |
---|---|
ProtocolOp |
addControl(Control control)
Adds the provided control to this protocol-op.
|
ProtocolOp |
addControls(Iterable<? extends Control> controls)
Adds the provided controls to this protocol-op.
|
boolean |
containsControl(String oid)
Returns
true if this protocol-op contains the specified control. |
default <C extends Control> |
getControl(ControlDecoder<C> decoder)
Decodes and returns the first control in this protocol-op having an OID
corresponding to the provided control decoder using default decode options.
|
<C extends Control> |
getControl(ControlDecoder<C> decoder,
DecodeOptions options)
Decodes and returns the first control in this protocol-op having an OID
corresponding to the provided control decoder.
|
List<Control> |
getControls()
Returns a
List containing the controls included with this
protocol-op. |
default <C extends Control> C getControl(ControlDecoder<C> decoder) throws DecodeException
C
- The type of control to be decoded and returned.decoder
- The control decoder.null
if the control is not included with this protocol-op.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
.<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 protocol-op.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
protocol-op. The returned List
may be modified if permitted by this
protocol-op.List
containing the controls.ProtocolOp addControl(Control control)
control
- The control to be added to this protocol-op.UnsupportedOperationException
- If this protocol-op does not permit controls to be added.NullPointerException
- If control
was null
.ProtocolOp addControls(Iterable<? extends Control> controls)
controls
- The controls to be added to this protocol-op.UnsupportedOperationException
- If this protocol-op does not permit controls to be added.NullPointerException
- If control
was null
.boolean containsControl(String oid)
true
if this protocol-op contains the specified control.oid
- The numeric OID of the protocol-op control.true
if this protocol-op contains the specified control.Copyright 2010-2022 ForgeRock AS.