lambdora-http-api/src/main/java/org/fcrepo/lambdora/ldp/JerseyRequestHandler.java
/**
     * Mpas requests through AWS to Jersey endpoints
     *
     * @param awsProxyRequest
     * @param context
     * @return
     */
Mpas requests through AWS to Jersey endpoints
@param awsProxyRequest
@param context
@return
Mpas requests through AWS to Jersey endpoints @param awsProxyRequest @param context @return
@Override
    public AwsProxyResponse handleRequest(final AwsProxyRequest awsProxyRequest, final Context context) {
        final ApiGatewayRequestContext requestContext = awsProxyRequest.getRequestContext();
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("\n\n*********** BEGIN HTTP REQUEST ***********" +
                         "\nHTTP Method={}" +
                         "\nPath={}" +
                         "\nResource={}" +
                         "\nPath Parameters={}" +
                         "\nQuery String Parameters={}" +
                         "\nStage Variables={}" +
                         "\nHeaders={}" +
                         "\nBody={}" +
                         "\ncontext.apiId={}" +
                         "\ncontext.accountId={}" +
                         "\ncontext.path={}" +
                         "\ncontext.resourceId={}" +
                         "\ncontext.resourcePath={}" +
                         "\ncontext.stage={}" +
                         "\n*********** END HTTP REQUEST ***********\n",
                         awsProxyRequest.getHttpMethod(),
                         awsProxyRequest.getPath(),
                         awsProxyRequest.getResource(),
                         awsProxyRequest.getPathParameters(),
                         awsProxyRequest.getQueryStringParameters(),
                         awsProxyRequest.getStageVariables(),
                         awsProxyRequest.getHeaders(),
                         awsProxyRequest.getBody(),
                         requestContext.getApiId(),
                         requestContext.getAccountId(),
                         requestContext.getPath(),
                         requestContext.getResourceId(),
                         requestContext.getResourcePath(),
                         requestContext.getStage());
        }
        awsProxyRequest.getHeaders().put("context", requestContext.getStage());
        return handler.proxy(awsProxyRequest, context);
    }
@ Override public AwsProxyResponse handleRequest ( final AwsProxyRequest awsProxyRequest , final Context context ) { final ApiGatewayRequestContext requestContext = awsProxyRequest . getRequestContext ( ) ; if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( "\n\n*********** BEGIN HTTP REQUEST ***********" + "\nHTTP Method={}" + "\nPath={}" + "\nResource={}" + "\nPath Parameters={}" + "\nQuery String Parameters={}" + "\nStage Variables={}" + "\nHeaders={}" + "\nBody={}" + "\ncontext.apiId={}" + "\ncontext.accountId={}" + "\ncontext.path={}" + "\ncontext.resourceId={}" + "\ncontext.resourcePath={}" + "\ncontext.stage={}" + "\n*********** END HTTP REQUEST ***********\n" , awsProxyRequest . getHttpMethod ( ) , awsProxyRequest . getPath ( ) , awsProxyRequest . getResource ( ) , awsProxyRequest . getPathParameters ( ) , awsProxyRequest . getQueryStringParameters ( ) , awsProxyRequest . getStageVariables ( ) , awsProxyRequest . getHeaders ( ) , awsProxyRequest . getBody ( ) , requestContext . getApiId ( ) , requestContext . getAccountId ( ) , requestContext . getPath ( ) , requestContext . getResourceId ( ) , requestContext . getResourcePath ( ) , requestContext . getStage ( ) ) ; } awsProxyRequest . getHeaders ( ) . put ( "context" , requestContext . getStage ( ) ) ; return handler . proxy ( awsProxyRequest , context ) ; }
Mpas requests through AWS to Jersey endpoints
 @param awsProxyRequest
 @param context
 @return
Mpas requests through AWS to Jersey endpoints @param awsProxyRequest @param context @return
// Captures the HTTP request in the log