public class AwsProxyHttpServletResponseWriter extends ResponseWriter<AwsHttpServletResponse,AwsProxyResponse>
AwsProxyResponse object given an AwsHttpServletResponse object. If the
response is not populated with a status code we infer a default 200 status code.| Constructor and Description |
|---|
AwsProxyHttpServletResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
AwsProxyResponse |
writeResponse(AwsHttpServletResponse containerResponse,
com.amazonaws.services.lambda.runtime.Context lambdaContext)
Writes status code, headers, and body from the container response to a Lambda return value.
|
isValidUtf8public AwsProxyResponse writeResponse(AwsHttpServletResponse containerResponse, com.amazonaws.services.lambda.runtime.Context lambdaContext) throws InvalidResponseObjectException
ResponseWriterwriteResponse in class ResponseWriter<AwsHttpServletResponse,AwsProxyResponse>containerResponse - The container response or response reader objectlambdaContext - The context for the Lambda function executionInvalidResponseObjectException - When the implementation cannot read the container response objectCopyright © 2018. All Rights Reserved.