@Singleton public class DefaultServletToAwsProxyRequestAdapter extends java.lang.Object implements ServletToAwsProxyRequestAdapter
DefaultImplementation
of ServletToAwsProxyRequestAdapter
.Constructor and Description |
---|
DefaultServletToAwsProxyRequestAdapter() |
Modifier and Type | Method and Description |
---|---|
com.amazonaws.serverless.proxy.model.AwsProxyRequest |
createAwsProxyRequest(javax.servlet.http.HttpServletRequest request) |
protected java.util.Optional<java.lang.String> |
createBody(javax.servlet.http.HttpServletRequest request,
boolean isBase64Encoded) |
protected com.amazonaws.serverless.proxy.model.Headers |
createHeaders(javax.servlet.http.HttpServletRequest request) |
protected com.amazonaws.serverless.proxy.model.MultiValuedTreeMap<java.lang.String,java.lang.String> |
createParams(javax.servlet.http.HttpServletRequest request) |
protected com.amazonaws.serverless.proxy.model.AwsProxyRequestContext |
createRequestContext(javax.servlet.http.HttpServletRequest request) |
protected boolean |
encodeBodyAsBase64() |
public DefaultServletToAwsProxyRequestAdapter()
@NonNull public com.amazonaws.serverless.proxy.model.AwsProxyRequest createAwsProxyRequest(@NonNull javax.servlet.http.HttpServletRequest request)
createAwsProxyRequest
in interface ServletToAwsProxyRequestAdapter
request
- Servlets request@NonNull protected com.amazonaws.serverless.proxy.model.AwsProxyRequestContext createRequestContext(@NonNull javax.servlet.http.HttpServletRequest request)
request
- A Servlet Request@NonNull protected com.amazonaws.serverless.proxy.model.Headers createHeaders(@NonNull javax.servlet.http.HttpServletRequest request)
request
- a Servlet requestHeaders
with the HTTP Headers of the request@NonNull protected com.amazonaws.serverless.proxy.model.MultiValuedTreeMap<java.lang.String,java.lang.String> createParams(@NonNull javax.servlet.http.HttpServletRequest request)
request
- Servlet RequestMultiValuedTreeMap
with the Request parametersprotected boolean encodeBodyAsBase64()
@NonNull protected java.util.Optional<java.lang.String> createBody(@NonNull javax.servlet.http.HttpServletRequest request, boolean isBase64Encoded)
request
- A Servlet requestisBase64Encoded
- wether the request is base64 encoded or not