RequestType - The incoming event typeResponseType - The expected return typepublic class SpringLambdaContainerHandler<RequestType,ResponseType> extends AwsLambdaServletContainerHandler<RequestType,ResponseType,AwsProxyHttpServletRequest,AwsHttpServletResponse>
AwsLambdaServletContainerHandler.StartupHandlerservletContext, startupHandlerlambdaContext, SERVER_INFO| Constructor and Description |
|---|
SpringLambdaContainerHandler(RequestReader<RequestType,AwsProxyHttpServletRequest> requestReader,
ResponseWriter<AwsHttpServletResponse,ResponseType> responseWriter,
SecurityContextWriter<RequestType> securityContextWriter,
ExceptionHandler<ResponseType> exceptionHandler,
org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
Creates a new container handler with the given reader and writer objects
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateSpringProfiles(java.lang.String... profiles) |
static SpringLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> |
getAwsProxyHandler(java.lang.Class... config)
Creates a default SpringLambdaContainerHandler initialized with the `AwsProxyRequest` and `AwsProxyResponse` objects
|
static SpringLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> |
getAwsProxyHandler(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext)
Creates a default SpringLambdaContainerHandler initialized with the `AwsProxyRequest` and `AwsProxyResponse` objects
|
protected AwsHttpServletResponse |
getContainerResponse(AwsProxyHttpServletRequest request,
java.util.concurrent.CountDownLatch latch) |
protected void |
handleRequest(AwsProxyHttpServletRequest containerRequest,
AwsHttpServletResponse containerResponse,
com.amazonaws.services.lambda.runtime.Context lambdaContext) |
void |
setRefreshContext(boolean refreshContext) |
doFilter, forward, getFilterChain, getServletContext, include, onStartup, setServletContextgetContainerConfig, getObjectMapper, proxy, stripBasePathpublic SpringLambdaContainerHandler(RequestReader<RequestType,AwsProxyHttpServletRequest> requestReader, ResponseWriter<AwsHttpServletResponse,ResponseType> responseWriter, SecurityContextWriter<RequestType> securityContextWriter, ExceptionHandler<ResponseType> exceptionHandler, org.springframework.web.context.ConfigurableWebApplicationContext applicationContext) throws ContainerInitializationException
requestReader - An implementation of `RequestReader`responseWriter - An implementation of `ResponseWriter`securityContextWriter - An implementation of `SecurityContextWriter`exceptionHandler - An implementation of `ExceptionHandler`ContainerInitializationExceptionpublic static SpringLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> getAwsProxyHandler(java.lang.Class... config) throws ContainerInitializationException
config - A set of classes annotated with the Spring @Configuration annotationContainerInitializationExceptionpublic static SpringLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> getAwsProxyHandler(org.springframework.web.context.ConfigurableWebApplicationContext applicationContext) throws ContainerInitializationException
applicationContext - A custom ConfigurableWebApplicationContext to be usedContainerInitializationExceptionpublic void setRefreshContext(boolean refreshContext)
protected AwsHttpServletResponse getContainerResponse(AwsProxyHttpServletRequest request, java.util.concurrent.CountDownLatch latch)
getContainerResponse in class LambdaContainerHandler<RequestType,ResponseType,AwsProxyHttpServletRequest,AwsHttpServletResponse>public void activateSpringProfiles(java.lang.String... profiles)
throws ContainerInitializationException
ContainerInitializationExceptionprotected void handleRequest(AwsProxyHttpServletRequest containerRequest, AwsHttpServletResponse containerResponse, com.amazonaws.services.lambda.runtime.Context lambdaContext) throws java.lang.Exception
handleRequest in class AwsLambdaServletContainerHandler<RequestType,ResponseType,AwsProxyHttpServletRequest,AwsHttpServletResponse>java.lang.ExceptionCopyright © 2018. All Rights Reserved.