forked from rpgreen/apigateway-generic-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGenericApiGatewayRequest.java
More file actions
47 lines (37 loc) · 1.23 KB
/
GenericApiGatewayRequest.java
File metadata and controls
47 lines (37 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package ca.ryangreen.apigateway.generic;
import com.amazonaws.http.HttpMethodName;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
public class GenericApiGatewayRequest {
private final HttpMethodName httpMethod;
private final String resourcePath;
private final InputStream body;
private final Map<String, String> headers;
private final Map<String, List<String>> parameters;
public GenericApiGatewayRequest(HttpMethodName httpMethod, String resourcePath,
InputStream body, Map<String, String> headers,
Map<String, List<String>> parameters) {
this.httpMethod = httpMethod;
this.resourcePath = resourcePath;
this.body = body;
this.headers = headers;
this.parameters = parameters;
}
public HttpMethodName getHttpMethod() {
return httpMethod;
}
public String getResourcePath() {
return resourcePath;
}
public InputStream getBody() {
return body;
}
public Map<String, String> getHeaders() {
return headers;
}
public Map<String, List<String>> getParameters() {
return parameters;
}
}