public interface Request extends ProtocolOp
Modifier and Type | Interface and Description |
---|---|
static class |
Request.RequestType
The type of this request.
|
Modifier and Type | Method and Description |
---|---|
<R,P,E extends Exception> |
accept(RequestVisitor<R,P,E> v,
P p)
Applies a
RequestVisitor to this Request . |
Request |
addControl(Control control)
Adds the provided control to this protocol-op.
|
Request |
addControls(Iterable<? extends Control> controls)
Adds the provided controls to this protocol-op.
|
Request.RequestType |
getType()
Returns the type of this request to avoid expensive
instanceof checks. |
containsControl, getControl, getControl, getControls
<R,P,E extends Exception> R accept(RequestVisitor<R,P,E> v, P p) throws E extends Exception
RequestVisitor
to this Request
.R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's methods.E
- The type of the exception thrown by the visitor method if it fails, or
NeverThrowsException
if the visitor cannot fail.v
- The request visitor.p
- Optional additional visitor parameter.E
- If the visitor failed.E extends Exception
Request.RequestType getType()
instanceof
checks.Request addControl(Control control)
ProtocolOp
addControl
in interface ProtocolOp
control
- The control to be added to this protocol-op.Request addControls(Iterable<? extends Control> controls)
ProtocolOp
addControls
in interface ProtocolOp
controls
- The controls to be added to this protocol-op.Copyright 2010-2022 ForgeRock AS.