RequestType - The expected request object. This is the model class that the event JSON is de-serialized toResponseType - The expected Lambda function response object. Responses from the container will be written to this model objectContainerRequestType - The request type for the wrapped Java containerContainerResponseType - The response or response writer type for the wrapped Java containerpublic abstract class LambdaContainerHandler<RequestType,ResponseType,ContainerRequestType,ContainerResponseType> extends Object
LambdaContainerHandler.| Modifier | Constructor and Description |
|---|---|
protected |
LambdaContainerHandler(RequestReader<RequestType,ContainerRequestType> requestReader,
ResponseWriter<ContainerResponseType,ResponseType> responseWriter,
SecurityContextWriter<RequestType> securityContextWriter,
ExceptionHandler<ResponseType> exceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract ContainerResponseType |
getContainerResponse(CountDownLatch latch) |
protected abstract void |
handleRequest(ContainerRequestType containerRequest,
ContainerResponseType containerResponse,
com.amazonaws.services.lambda.runtime.Context lambdaContext) |
ResponseType |
proxy(RequestType request,
com.amazonaws.services.lambda.runtime.Context context)
Proxies requests to the underlying container given the incoming Lambda request.
|
protected LambdaContainerHandler(RequestReader<RequestType,ContainerRequestType> requestReader, ResponseWriter<ContainerResponseType,ResponseType> responseWriter, SecurityContextWriter<RequestType> securityContextWriter, ExceptionHandler<ResponseType> exceptionHandler)
protected abstract ContainerResponseType getContainerResponse(CountDownLatch latch)
protected abstract void handleRequest(ContainerRequestType containerRequest, ContainerResponseType containerResponse, com.amazonaws.services.lambda.runtime.Context lambdaContext) throws Exception
Exceptionpublic ResponseType proxy(RequestType request, com.amazonaws.services.lambda.runtime.Context context)
request - The incoming Lambda requestcontext - The execution context for the Lambda functionCopyright © 2017. All Rights Reserved.