Class AwsProxyRequestBuilder
java.lang.Object
com.amazonaws.serverless.proxy.internal.testutils.AwsProxyRequestBuilder
Request builder object. This is used by unit proxy to quickly create an AWS_PROXY request object
-
Constructor Summary
ConstructorsConstructorDescriptionAwsProxyRequestBuilder(String path)AwsProxyRequestBuilder(String path, String httpMethod) -
Method Summary
Modifier and TypeMethodDescriptionalb()authorizerContextValue(String key, String value)authorizerPrincipal(String principal)binaryBody(InputStream is)build()cognitoIdentity(String identityId, String identityPoolId)cognitoUserPool(String identityId)formFieldPart(String fieldName, String fieldValue)formFilePart(String fieldName, String fileName, byte[] content)fromJsonPath(String filePath)fromJsonString(String jsonContent)json()multiValueQueryString(MultiValuedTreeMap<String,String> params)nullBody()queryString(String key, String value)serverName(String serverName)
-
Constructor Details
-
AwsProxyRequestBuilder
public AwsProxyRequestBuilder() -
AwsProxyRequestBuilder
-
AwsProxyRequestBuilder
-
AwsProxyRequestBuilder
-
-
Method Details
-
alb
-
stage
-
method
-
path
-
json
-
form
-
formFilePart
public AwsProxyRequestBuilder formFilePart(String fieldName, String fileName, byte[] content) throws IOException- Throws:
IOException
-
formFieldPart
public AwsProxyRequestBuilder formFieldPart(String fieldName, String fieldValue) throws IOException- Throws:
IOException
-
header
-
multiValueHeaders
-
multiValueQueryString
-
queryString
-
body
-
nullBody
-
body
-
apiId
-
binaryBody
- Throws:
IOException
-
authorizerPrincipal
-
authorizerContextValue
-
cognitoUserPool
-
claim
-
cognitoIdentity
-
cookie
-
scheme
-
serverName
-
userAgent
-
referer
-
basicAuth
-
fromJsonString
- Throws:
IOException
-
fromJsonPath
- Throws:
IOException
-
build
-
buildStream
-
toHttpApiV2RequestStream
-
toHttpApiV2Request
-