Interface DynamicPathRequestHandler<T,U>

Type Parameters:
T - The type of the request body.
U - The type of the response body.
All Superinterfaces:
RequestHandler<T,U>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DynamicPathRequestHandler<T,U> extends RequestHandler<T,U>
A function used to handle an HTTP request for a single path. This request is for a path with path variables.
  • Method Details

    • handleDynamicPathRequest

      Response<U> handleDynamicPathRequest(DynamicPathRequest<T> request)
      Handles a request with path variables.
      Parameters:
      request - The HTTP request.
      Returns:
      The HTTP response.
    • handleRequest

      default Response<U> handleRequest(Request<T> request)
      Handles a generic HTTP request.
      Specified by:
      handleRequest in interface RequestHandler<T,U>
      Parameters:
      request - The HTTP request.
      Returns:
      The HTTP response.