- All Known Implementing Classes:
DelegatingHandler,RouteHandler
public interface Handler
Handler for requests.
-
Method Summary
-
Method Details
-
handle
Handles the request.If
nullis returned, that means that the handler is signaling that it does not want to handle theRequest. This would signal that anotherHandlershould be consulted or a default response should be used- Parameters:
request- The request to handle.- Returns:
- Something which can be converted into a response or null.
- Throws:
Exception- If something goes wrong.
-