Class GoogleFunctionHttpServerImplementation
java.lang.Object
net.officefloor.server.google.function.GoogleFunctionHttpServerImplementation
- All Implemented Interfaces:
ServiceFactory<HttpServerImplementation>,HttpServerImplementation,HttpServerImplementationFactory
public class GoogleFunctionHttpServerImplementation
extends Object
implements HttpServerImplementation, HttpServerImplementationFactory
Google Function
HttpServerImplementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinHttpFunction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures theHttpServer.createService(ServiceContext context) Creates the service.Obtains theDateHttpHeaderClock.Obtains theGoogleFunctionHttpServerImplementation.Obtains theHttpServerLocation.getInput()Obtains theExternalServiceInputto service the AWS API event.Obtains theLogger.Obtains the serverHttpHeaderValue.booleanIndicates if include stack trace in HTTP responses.
-
Field Details
-
SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinHttpFunction.- See Also:
-
-
Constructor Details
-
GoogleFunctionHttpServerImplementation
public GoogleFunctionHttpServerImplementation()
-
-
Method Details
-
getGoogleFunctionHttpServerImplementation
Obtains theGoogleFunctionHttpServerImplementation.- Returns:
GoogleFunctionHttpServerImplementation.
-
getHttpServerLocation
Obtains theHttpServerLocation.- Returns:
HttpServerLocation.
-
getInput
public ExternalServiceInput<ServerHttpConnection,ProcessAwareServerHttpConnectionManagedObject> getInput()Obtains theExternalServiceInputto service the AWS API event.- Returns:
ExternalServiceInputto service the AWS API event.
-
getServerName
Obtains the serverHttpHeaderValue.- Returns:
- Server
HttpHeaderValue.
-
getDateHttpHeaderClock
Obtains theDateHttpHeaderClock.- Returns:
DateHttpHeaderClock.
-
isIncludeEscalationStackTrace
public boolean isIncludeEscalationStackTrace()Indicates if include stack trace in HTTP responses.- Returns:
trueto include stack trace.
-
getLogger
Obtains theLogger.- Returns:
Logger.
-
createService
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<HttpServerImplementation>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
Throwable- If fails to create the service.
-
configureHttpServer
Description copied from interface:HttpServerImplementationConfigures theHttpServer.- Specified by:
configureHttpServerin interfaceHttpServerImplementation- Parameters:
context-HttpServerImplementationContext.- Throws:
Exception- If fails to configure theHttpServerImplementation.
-