|
10 | 10 | * OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
11 | 11 | * and limitations under the License.
|
12 | 12 | */
|
13 |
| -package com.amazonaws.serverless.proxy.internal; |
| 13 | +package com.amazonaws.serverless.proxy; |
14 | 14 |
|
15 | 15 |
|
16 | 16 | import com.amazonaws.serverless.exceptions.InvalidRequestEventException;
|
17 |
| -import com.amazonaws.serverless.proxy.internal.model.ContainerConfig; |
| 17 | +import com.amazonaws.serverless.proxy.model.ContainerConfig; |
18 | 18 | import com.amazonaws.services.lambda.runtime.Context;
|
19 | 19 |
|
20 |
| -import com.fasterxml.jackson.databind.ObjectMapper; |
21 |
| - |
22 | 20 | import javax.ws.rs.core.SecurityContext;
|
23 | 21 |
|
24 |
| -import java.io.IOException; |
25 |
| -import java.io.InputStream; |
26 |
| - |
27 | 22 |
|
28 | 23 | /**
|
29 | 24 | * Implementations of the RequestReader object are used by container objects to transform the incoming Lambda event into
|
@@ -63,13 +58,13 @@ public abstract class RequestReader<RequestType, ContainerRequestType> {
|
63 | 58 | /**
|
64 | 59 | * Reads the incoming event object and produces a populated request for the underlying container
|
65 | 60 | * @param request The incoming request object
|
66 |
| - * @param securityContext A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.internal.SecurityContextWriter) |
| 61 | + * @param securityContext A jax-rs SecurityContext object (@see com.amazonaws.serverless.proxy.SecurityContextWriter) |
67 | 62 | * @param lambdaContext The AWS Lambda context for the request
|
68 | 63 | * @param config The container configuration object. This is passed in by the LambdaContainerHandler.
|
69 | 64 | * @return A valid request object for the underlying container
|
70 | 65 | * @throws InvalidRequestEventException This exception is thrown if anything goes wrong during the creation of the request object
|
71 | 66 | */
|
72 |
| - protected abstract ContainerRequestType readRequest(RequestType request, SecurityContext securityContext, Context lambdaContext, ContainerConfig config) |
| 67 | + public abstract ContainerRequestType readRequest(RequestType request, SecurityContext securityContext, Context lambdaContext, ContainerConfig config) |
73 | 68 | throws InvalidRequestEventException;
|
74 | 69 |
|
75 | 70 |
|
|
0 commit comments