@DefaultImplementation(value=DefaultServletToAwsProxyResponseAdapter.class) @FunctionalInterface public interface ServletToAwsProxyResponseAdapter
AwsProxyResponse
to a HttpServletResponse
.Modifier and Type | Method and Description |
---|---|
void |
handle(javax.servlet.http.HttpServletRequest request,
com.amazonaws.serverless.proxy.model.AwsProxyResponse awsProxyResponse,
javax.servlet.http.HttpServletResponse response)
Writes the contents of a
AwsProxyResponse to a HttpServletResponse . |
void handle(@NonNull javax.servlet.http.HttpServletRequest request, @NonNull com.amazonaws.serverless.proxy.model.AwsProxyResponse awsProxyResponse, @NonNull javax.servlet.http.HttpServletResponse response) throws java.io.IOException
AwsProxyResponse
to a HttpServletResponse
.request
- Servlet RequestawsProxyResponse
- The AWS proxy responseresponse
- The Servlet Responsejava.io.IOException
- can be thrown while writing the response