RequestType - The type for the AWS Lambda eventContainerRequestType - The type for the undelying container request objectpublic abstract class RequestReader<RequestType,ContainerRequestType> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
API_GATEWAY_CONTEXT_PROPERTY
The key for the API Gateway context property in the PropertiesDelegate object
|
static String |
API_GATEWAY_STAGE_VARS_PROPERTY
The key for the API Gateway stage variables property in the PropertiesDelegate object
|
static String |
LAMBDA_CONTEXT_PROPERTY
The key for the AWS Lambda context property in the PropertiesDelegate object
|
| Constructor and Description |
|---|
RequestReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<? extends RequestType> |
getRequestClass() |
protected abstract ContainerRequestType |
readRequest(RequestType request,
javax.ws.rs.core.SecurityContext securityContext,
com.amazonaws.services.lambda.runtime.Context lambdaContext)
Reads the incoming event object and produces a populated request for the underlying container
|
public static final String API_GATEWAY_CONTEXT_PROPERTY
public static final String API_GATEWAY_STAGE_VARS_PROPERTY
public static final String LAMBDA_CONTEXT_PROPERTY
protected abstract ContainerRequestType readRequest(RequestType request, javax.ws.rs.core.SecurityContext securityContext, com.amazonaws.services.lambda.runtime.Context lambdaContext) throws InvalidRequestEventException
request - The incoming request objectsecurityContext - A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.internal.SecurityContextWriter)lambdaContext - The AWS Lambda context for the requestInvalidRequestEventException - This exception is thrown if anything goes wrong during the creation of the request objectprotected abstract Class<? extends RequestType> getRequestClass()
Copyright © 2017. All Rights Reserved.