Interface Request

    • Method Detail

      • accept

        <R,​P,​E extends Exception> R accept​(RequestVisitor<R,​P,​E> v,
                                                       P p)
                                                throws E extends Exception
        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.
        E extends Exception
      • getType

        Request.RequestType getType()
        Returns the type of this request to avoid expensive instanceof checks.
        Returns:
        the type of this request
      • addControl

        Request addControl​(Control control)
        Description copied from interface: ProtocolOp
        Adds the provided control to this protocol-op.
        Specified by:
        addControl in interface ProtocolOp
        Parameters:
        control - The control to be added to this protocol-op.
        Returns:
        This protocol-op.
      • addControls

        Request addControls​(Iterable<? extends Control> controls)
        Description copied from interface: ProtocolOp
        Adds the provided controls to this protocol-op.
        Specified by:
        addControls in interface ProtocolOp
        Parameters:
        controls - The controls to be added to this protocol-op.
        Returns:
        This protocol-op.