Package org.apache.juneau.rest.mock
Interface MockHttpTransport.RequestHandler
- Enclosing class:
- MockHttpTransport
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A handler that maps an incoming
TransportRequest to a TransportResponse.- Since:
- 9.2.1
-
Method Summary
-
Method Details
-
handle
Handles the request.- Parameters:
request- The incoming request. Nevernull.- Returns:
- The response to return. Never
null. - Throws:
TransportException- If the handler wants to simulate a network error.
-