Package net.officefloor.server.aws.sam
Class SamHttpServerImplementation
java.lang.Object
net.officefloor.server.aws.sam.SamHttpServerImplementation
- All Implemented Interfaces:
ServiceFactory<HttpServerImplementation>,HttpServerImplementation,HttpServerImplementationFactory
public class SamHttpServerImplementation
extends Object
implements HttpServerImplementation, HttpServerImplementationFactory
AWS SAM
HttpServerImplementation.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinRequestHandler. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures theHttpServer.createService(ServiceContext context) Creates the service.Obtains theHttpServerLocation.getInput()Obtains theExternalServiceInputto service the AWS API event.Obtains theLogger.static SamHttpServerImplementationObtains theSamHttpServerImplementation.booleanIndicates if include stack trace in HTTP responses.
-
Field Details
-
SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinRequestHandler.- See Also:
-
-
Constructor Details
-
SamHttpServerImplementation
public SamHttpServerImplementation()
-
-
Method Details
-
getSamHttpServerImplementation
Obtains theSamHttpServerImplementation.- Returns:
SamHttpServerImplementation.
-
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.
-
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.
-