Package net.officefloor.server.aws.sam
Class OfficeFloorSam
- java.lang.Object
-
- net.officefloor.server.aws.sam.OfficeFloorSam
-
- 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 OfficeFloorSam extends java.lang.Object implements com.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
Handles theAPIGatewayProxyRequestEvent
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorSam()
Default constructor required by AWS.OfficeFloorSam(boolean isLog)
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
close()
Closes theOfficeFloor
.com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent
handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent input, com.amazonaws.services.lambda.runtime.Context context)
======================= RequestHandler =========================static void
open()
Opens theOfficeFloor
.
-
-
-
Method Detail
-
open
public static void open() throws java.lang.Exception
Opens theOfficeFloor
.- Throws:
java.lang.Exception
- If fails to open theOfficeFloor
.
-
close
public static void close() throws java.lang.Exception
Closes the
OfficeFloor
.AWS should just discard instances. Therefore, this is mainly for testing.
- Throws:
java.lang.Exception
- If fails to close theOfficeFloor
.
-
handleRequest
public com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent handleRequest(com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent input, com.amazonaws.services.lambda.runtime.Context context)
======================= RequestHandler =========================- Specified by:
handleRequest
in interfacecom.amazonaws.services.lambda.runtime.RequestHandler<com.amazonaws.services.lambda.runtime.events.APIGatewayProxyRequestEvent,com.amazonaws.services.lambda.runtime.events.APIGatewayProxyResponseEvent>
-
-