Interface RequestVisitor<R,P,E extends Exception>

Type Parameters:
R - The return type of this visitor's methods. Use Void for visitors that do not need to return results.
P - The type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.
E - The type of the exception thrown by the visitor method if it fails, or NeverThrowsException if the visitor cannot fail.
All Known Implementing Classes:
AbstractRequestVisitor, ChangeRecordVisitor

public interface RequestVisitor<R,P,E extends Exception>
A visitor of Requests, in the style of the visitor design pattern.

Classes implementing this interface can query requests in a type-safe manner. When a visitor is passed to a request's accept method, the corresponding visit method most applicable to that request is invoked.

  • Method Details

    • visitRequest

      R visitRequest(P p, AbandonRequest request) throws E
      Visits an Abandon request.
      Parameters:
      p - A visitor specified parameter.
      request - The Abandon request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, AddRequest request) throws E
      Visits an Add request.
      Parameters:
      p - A visitor specified parameter.
      request - The Add request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, BindRequest request) throws E
      Visits an Bind request.
      Parameters:
      p - A visitor specified parameter.
      request - The Bind request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, CompareRequest request) throws E
      Visits an Compare request.
      Parameters:
      p - A visitor specified parameter.
      request - The Compare request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, DeleteRequest request) throws E
      Visits an Delete request.
      Parameters:
      p - A visitor specified parameter.
      request - The Delete request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, ExtendedRequest<?> request) throws E
      Visits an Extended request.
      Parameters:
      p - A visitor specified parameter.
      request - The Extended request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, InvalidRequest request) throws E
      Visits an Invalid request.
      Parameters:
      p - A visitor specified parameter.
      request - The Invalid request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, ModifyDnRequest request) throws E
      Visits an ModifyDN request.
      Parameters:
      p - A visitor specified parameter.
      request - The ModifyDN request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, ModifyRequest request) throws E
      Visits an Modify request.
      Parameters:
      p - A visitor specified parameter.
      request - The Modify request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, SearchRequest request) throws E
      Visits an Search request.
      Parameters:
      p - A visitor specified parameter.
      request - The Search request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, UnbindRequest request) throws E
      Visits an Unbind request.
      Parameters:
      p - A visitor specified parameter.
      request - The Unbind request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.
    • visitRequest

      R visitRequest(P p, UnknownRequest request) throws E
      Visits an Unknown request.
      Parameters:
      p - A visitor specified parameter.
      request - The Unknown request.
      Returns:
      Returns a visitor specified result.
      Throws:
      E - If the visitor failed.