Class LambdaApp

java.lang.Object
com.networknt.aws.lambda.app.LambdaApp
All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>

public class LambdaApp extends Object implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
This is the entry point for the middleware Lambda function that is responsible for cross-cutting concerns for the business Lambda function which is called from the is Lambda function once all cross-cutting concerns are addressed. The middleware Lambda function receives the APIGatewayProxyRequestEvent from the API Gateway and returns the APIGatewayProxyResponseEvent to the API Gateway.
Author:
Steve Hu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LambdaAppConfig
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent
    handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent apiGatewayProxyRequestEvent, com.amazonaws.services.lambda.runtime.Context context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • LambdaApp

      public LambdaApp()
  • Method Details

    • handleRequest

      public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent apiGatewayProxyRequestEvent, com.amazonaws.services.lambda.runtime.Context context)
      Specified by:
      handleRequest in interface com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>