Module quak.framework.web
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.
A function used to handle an HTTP request for a single path. This request is for a path with path variables.
-
Method Summary
Modifier and TypeMethodDescriptionhandleDynamicPathRequest(DynamicPathRequest<T> request) Handles a request with path variables.handleRequest(Request<T> request) Handles a generic HTTP request.
-
Method Details
-
handleDynamicPathRequest
Handles a request with path variables.- Parameters:
request- The HTTP request.- Returns:
- The HTTP response.
-
handleRequest
Handles a generic HTTP request.- Specified by:
handleRequestin interfaceRequestHandler<T,U> - Parameters:
request- The HTTP request.- Returns:
- The HTTP response.
-