public class ProxyRequest
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
| Constructor and Description |
|---|
ProxyRequest(java.lang.String resource,
java.lang.String path,
java.lang.String httpMethod,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryStringParameters,
java.util.Map<java.lang.String,java.lang.String> pathParameters,
boolean isIsBase64Encoded,
java.util.Map<java.lang.String,? extends java.lang.Object> requestContext,
java.util.Map<java.lang.String,java.lang.String> stageVariables,
java.lang.String body)
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
|
ProxyRequest()
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
|
| Modifier and Type | Method and Description |
|---|---|
Request |
buildRequest() |
byte[] |
getBinaryBody()
Returns a byte array containing the binary data in the body; returns null if the body is null or
not base 64 encoded.
|
java.lang.String |
getBody() |
java.util.Map<java.lang.String,java.lang.String> |
getHeaders() |
java.lang.String |
getHttpMethod() |
java.lang.String |
getPath()
The path to the endpoint relative to the domain root;
|
java.util.Map<java.lang.String,java.lang.String> |
getPathParameters() |
java.util.Map<java.lang.String,java.lang.String> |
getQueryStringParameters() |
java.util.Map<java.lang.String,java.lang.Object> |
getRequestContext() |
java.lang.String |
getResource()
The path to the endpoint relative to the root of the API.
|
java.util.Map<java.lang.String,java.lang.String> |
getStageVariables() |
boolean |
isIsBase64Encoded()
Indicates whether the body is base 64 encoded binary data;
|
void |
setBody(java.lang.String p) |
void |
setHeaders(java.util.Map<java.lang.String,java.lang.String> p) |
void |
setHttpMethod(java.lang.String p) |
void |
setIsBase64Encoded(boolean p)
Indicates whether the body is base 64 encoded binary data;
|
void |
setPath(java.lang.String p)
The path to the endpoint relative to the domain root;
|
void |
setPathParameters(java.util.Map<java.lang.String,java.lang.String> p) |
void |
setQueryStringParameters(java.util.Map<java.lang.String,java.lang.String> p) |
void |
setRequestContext(java.util.Map<java.lang.String,? extends java.lang.Object> p) |
void |
setResource(java.lang.String p)
The path to the endpoint relative to the root of the API.
|
void |
setStageVariables(java.util.Map<java.lang.String,java.lang.String> p) |
public ProxyRequest(java.lang.String resource,
java.lang.String path,
java.lang.String httpMethod,
java.util.Map<java.lang.String,java.lang.String> headers,
java.util.Map<java.lang.String,java.lang.String> queryStringParameters,
java.util.Map<java.lang.String,java.lang.String> pathParameters,
boolean isIsBase64Encoded,
java.util.Map<java.lang.String,? extends java.lang.Object> requestContext,
java.util.Map<java.lang.String,java.lang.String> stageVariables,
java.lang.String body)
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
resource - The path to the endpoint relative to the root of the API.path - The path to the endpoint relative to the domain root; includes any base path mapping applied to the API.isIsBase64Encoded - Indicates whether the body is base 64 encoded binary data; the weird name ensures it's deserialised correctlypublic ProxyRequest()
The input to an AWS Lambda function when invoked by API Gateway using the proxy integration type.
public Request buildRequest()
public byte[] getBinaryBody()
Returns a byte array containing the binary data in the body; returns null if the body is null or not base 64 encoded.
public java.lang.String getResource()
The path to the endpoint relative to the root of the API.
public void setResource(java.lang.String p)
The path to the endpoint relative to the root of the API.
p - The path to the endpoint relative to the root of the API.public java.lang.String getPath()
The path to the endpoint relative to the domain root;
includes any base path mapping applied to the API.
public void setPath(java.lang.String p)
The path to the endpoint relative to the domain root;
includes any base path mapping applied to the API.
p - The path to the endpoint relative to the domain root; includes any base path mapping applied to the API.public java.lang.String getHttpMethod()
public void setHttpMethod(java.lang.String p)
public java.util.Map<java.lang.String,java.lang.String> getHeaders()
public void setHeaders(java.util.Map<java.lang.String,java.lang.String> p)
public java.util.Map<java.lang.String,java.lang.String> getQueryStringParameters()
public void setQueryStringParameters(java.util.Map<java.lang.String,java.lang.String> p)
public java.util.Map<java.lang.String,java.lang.String> getPathParameters()
public void setPathParameters(java.util.Map<java.lang.String,java.lang.String> p)
public boolean isIsBase64Encoded()
Indicates whether the body is base 64 encoded binary data;
the weird name ensures it's deserialised correctly
public void setIsBase64Encoded(boolean p)
Indicates whether the body is base 64 encoded binary data;
the weird name ensures it's deserialised correctly
p - Indicates whether the body is base 64 encoded binary data; the weird name ensures it's deserialised correctlypublic java.util.Map<java.lang.String,java.lang.Object> getRequestContext()
public void setRequestContext(java.util.Map<java.lang.String,? extends java.lang.Object> p)
public java.util.Map<java.lang.String,java.lang.String> getStageVariables()
public void setStageVariables(java.util.Map<java.lang.String,java.lang.String> p)
public java.lang.String getBody()
public void setBody(java.lang.String p)