Class OfficeFloorHttpFunction
java.lang.Object
net.officefloor.server.google.function.OfficeFloorHttpFunction
- All Implemented Interfaces:
com.google.cloud.functions.HttpFunction
public class OfficeFloorHttpFunction
extends Object
implements com.google.cloud.functions.HttpFunction
OfficeFloor HttpFunction.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFactory to create the compiled and openOfficeFloor. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclose()Closes theOfficeFloor.static voidopen()Opens theOfficeFloor.static voidreset()ResetsOfficeFloorHttpFunctionfor reloading.voidservice(com.google.cloud.functions.HttpRequest request, com.google.cloud.functions.HttpResponse response) static voidSpecifies theOfficeFloorHttpFunction.HttpFunctionOfficeFloorFactory.
-
Constructor Details
-
OfficeFloorHttpFunction
public OfficeFloorHttpFunction()
-
-
Method Details
-
setOfficeFloorFactory
public static void setOfficeFloorFactory(OfficeFloorHttpFunction.HttpFunctionOfficeFloorFactory factory) Specifies theOfficeFloorHttpFunction.HttpFunctionOfficeFloorFactory.- Parameters:
factory-OfficeFloorHttpFunction.HttpFunctionOfficeFloorFactory.
-
reset
public static void reset()Resets
OfficeFloorHttpFunctionfor reloading.Should only be called in test code.
-
open
Opens theOfficeFloor.- Throws:
Exception- If fails to open theOfficeFloor.
-
close
Closes the
OfficeFloor.AWS should just discard instances. Therefore, this is mainly for testing.
- Throws:
Exception- If fails to close theOfficeFloor.
-
service
public void service(com.google.cloud.functions.HttpRequest request, com.google.cloud.functions.HttpResponse response) throws Exception - Specified by:
servicein interfacecom.google.cloud.functions.HttpFunction- Throws:
Exception
-