@FunctionalInterface
public interface RequestProcessor
| Modifier and Type | Method and Description |
|---|---|
void |
service(WebRequest req,
WebResponse rsp)
Handles request of the HTTP client.
|
void service(WebRequest req, WebResponse rsp) throws java.lang.Exception
req - WebRequest object that contains the request the client made of
the ApiGatewayrsp - WebResponse object that contains the response the ApiGateway
returns to the clientjava.lang.Exception - if an input or output error occurs while the ApiGateway is
handling the HTTP request