public class AwsHttpApiV2HttpServletRequestReader extends RequestReader<HttpApiV2ProxyRequest,javax.servlet.http.HttpServletRequest>
ALB_CONTEXT_PROPERTY, API_GATEWAY_CONTEXT_PROPERTY, API_GATEWAY_EVENT_PROPERTY, API_GATEWAY_STAGE_VARS_PROPERTY, HTTP_API_CONTEXT_PROPERTY, HTTP_API_EVENT_PROPERTY, HTTP_API_STAGE_VARS_PROPERTY, JAX_SECURITY_CONTEXT_PROPERTY, LAMBDA_CONTEXT_PROPERTY| Constructor and Description |
|---|
AwsHttpApiV2HttpServletRequestReader() |
| Modifier and Type | Method and Description |
|---|---|
protected Class<? extends HttpApiV2ProxyRequest> |
getRequestClass() |
javax.servlet.http.HttpServletRequest |
readRequest(HttpApiV2ProxyRequest request,
javax.ws.rs.core.SecurityContext securityContext,
com.amazonaws.services.lambda.runtime.Context lambdaContext,
ContainerConfig config)
Reads the incoming event object and produces a populated request for the underlying container
|
stripBasePathpublic AwsHttpApiV2HttpServletRequestReader()
public javax.servlet.http.HttpServletRequest readRequest(HttpApiV2ProxyRequest request, javax.ws.rs.core.SecurityContext securityContext, com.amazonaws.services.lambda.runtime.Context lambdaContext, ContainerConfig config) throws InvalidRequestEventException
RequestReaderreadRequest in class RequestReader<HttpApiV2ProxyRequest,javax.servlet.http.HttpServletRequest>request - The incoming request objectsecurityContext - A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.SecurityContextWriter)lambdaContext - The AWS Lambda context for the requestconfig - The container configuration object. This is passed in by the LambdaContainerHandler.InvalidRequestEventException - This exception is thrown if anything goes wrong during the creation of the request objectprotected Class<? extends HttpApiV2ProxyRequest> getRequestClass()
getRequestClass in class RequestReader<HttpApiV2ProxyRequest,javax.servlet.http.HttpServletRequest>Copyright © 2022. All rights reserved.