Interface Request
- All Superinterfaces:
ProtocolOp
- All Known Subinterfaces:
ChangeRecord, ExtendedRequest<S>
- All Known Implementing Classes:
AbandonRequest, AddRequest, BindRequest, CancelExtendedRequest, CompareRequest, DeleteRequest, GenericExtendedRequest, InvalidRequest, ModifyDnRequest, ModifyRequest, PasswordModifyExtendedRequest, RegistrationToCoreExtendedRequest, SearchRequest, StartTlsExtendedRequest, UnbindRequest, UnknownRequest, WhoAmIExtendedRequest
The base class of all Requests provides methods for querying and manipulating
the set of Controls included with a Request.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<R, P, E extends Exception>
Raccept(RequestVisitor<R, P, E> v, P p) Applies aRequestVisitorto thisRequest.getType()Returns the type of this request to avoid expensiveinstanceofchecks.Methods inherited from interface ProtocolOp
addControl, addControls, containsControl, controls, getControl, getControl, removeControls
-
Method Details
-
accept
Applies aRequestVisitorto thisRequest.- Type Parameters:
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, orNeverThrowsExceptionif the visitor cannot fail.- Parameters:
v- The request visitor.p- Optional additional visitor parameter.- Returns:
- A result as specified by the visitor.
- Throws:
E- If the visitor failed.
-
getType
Request.RequestType getType()Returns the type of this request to avoid expensiveinstanceofchecks.- Returns:
- the type of this request
-