RequestType - request typeResponseType - response typepublic class StrutsLambdaContainerHandler<RequestType,ResponseType> extends AwsLambdaServletContainerHandler<RequestType,ResponseType,javax.servlet.http.HttpServletRequest,AwsHttpServletResponse>
AwsLambdaServletContainerHandler.StartupHandler| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER_STRUTS_STATUS_CODE |
servletContext, startupHandlerlambdaContext, SERVER_INFO| Constructor and Description |
|---|
StrutsLambdaContainerHandler(Class<RequestType> requestTypeClass,
Class<ResponseType> responseTypeClass,
RequestReader<RequestType,javax.servlet.http.HttpServletRequest> requestReader,
ResponseWriter<AwsHttpServletResponse,ResponseType> responseWriter,
SecurityContextWriter<RequestType> securityContextWriter,
ExceptionHandler<ResponseType> exceptionHandler) |
| Modifier and Type | Method and Description |
|---|---|
static StrutsLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> |
getAwsProxyHandler() |
protected AwsHttpServletResponse |
getContainerResponse(javax.servlet.http.HttpServletRequest request,
CountDownLatch latch) |
static StrutsLambdaContainerHandler<HttpApiV2ProxyRequest,AwsProxyResponse> |
getHttpApiV2ProxyHandler() |
javax.servlet.Servlet |
getServlet() |
protected void |
handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
AwsHttpServletResponse httpServletResponse,
com.amazonaws.services.lambda.runtime.Context lambdaContext) |
void |
initialize() |
doFilter, getFilterChain, getServletContext, onStartup, setServletContextgetContainerConfig, getInitializationWrapper, getObjectMapper, proxy, proxyStream, setInitializationWrapper, setLogFormatter, stripBasePathpublic static final String HEADER_STRUTS_STATUS_CODE
public StrutsLambdaContainerHandler(Class<RequestType> requestTypeClass, Class<ResponseType> responseTypeClass, RequestReader<RequestType,javax.servlet.http.HttpServletRequest> requestReader, ResponseWriter<AwsHttpServletResponse,ResponseType> responseWriter, SecurityContextWriter<RequestType> securityContextWriter, ExceptionHandler<ResponseType> exceptionHandler)
public static StrutsLambdaContainerHandler<AwsProxyRequest,AwsProxyResponse> getAwsProxyHandler()
public static StrutsLambdaContainerHandler<HttpApiV2ProxyRequest,AwsProxyResponse> getHttpApiV2ProxyHandler()
protected AwsHttpServletResponse getContainerResponse(javax.servlet.http.HttpServletRequest request, CountDownLatch latch)
getContainerResponse in class LambdaContainerHandler<RequestType,ResponseType,javax.servlet.http.HttpServletRequest,AwsHttpServletResponse>protected void handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest,
AwsHttpServletResponse httpServletResponse,
com.amazonaws.services.lambda.runtime.Context lambdaContext)
throws Exception
handleRequest in class LambdaContainerHandler<RequestType,ResponseType,javax.servlet.http.HttpServletRequest,AwsHttpServletResponse>Exceptionpublic void initialize()
throws ContainerInitializationException
initialize in class AwsLambdaServletContainerHandler<RequestType,ResponseType,javax.servlet.http.HttpServletRequest,AwsHttpServletResponse>ContainerInitializationExceptionpublic javax.servlet.Servlet getServlet()
Copyright © 2022. All rights reserved.