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, SearchRequest, StartTlsExtendedRequest, UnbindRequest, UnknownRequest, WhoAmIExtendedRequest

public interface Request extends ProtocolOp
The base class of all Requests provides methods for querying and manipulating the set of Controls included with a Request.
  • Method Details

    • accept

      <R, P, E extends Exception> R accept(RequestVisitor<R,P,E> v, P p) throws E
      Applies a RequestVisitor to this Request.
      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, or NeverThrowsException if 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

      Returns the type of this request to avoid expensive instanceof checks.
      Returns:
      the type of this request