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 java.lang.Object implements HttpServerImplementation, HttpServerImplementationFactory
AWS SAMHttpServerImplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSYNC_TEAM_NAMEName of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinRequestHandler.
-
Constructor Summary
Constructors Constructor Description SamHttpServerImplementation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureHttpServer(HttpServerImplementationContext context)Configures theHttpServer.HttpServerImplementationcreateService(ServiceContext context)Creates the service.HttpServerLocationgetHttpServerLocation()Obtains theHttpServerLocation.ExternalServiceInput<ServerHttpConnection,ProcessAwareServerHttpConnectionManagedObject>getInput()Obtains theExternalServiceInputto service the AWS API event.java.util.logging.LoggergetLogger()Obtains theLogger.static SamHttpServerImplementationgetSamHttpServerImplementation()Obtains theSamHttpServerImplementation.booleanisIncludeEscalationStackTrace()Indicates if include stack trace in HTTP responses.
-
-
-
Field Detail
-
SYNC_TEAM_NAME
public static final java.lang.String SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinRequestHandler.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSamHttpServerImplementation
public static SamHttpServerImplementation getSamHttpServerImplementation()
Obtains theSamHttpServerImplementation.- Returns:
SamHttpServerImplementation.
-
getHttpServerLocation
public HttpServerLocation 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
public java.util.logging.Logger getLogger()
Obtains theLogger.- Returns:
Logger.
-
createService
public HttpServerImplementation createService(ServiceContext context) throws java.lang.Throwable
Description copied from interface:ServiceFactoryCreates the service.- Specified by:
createServicein interfaceServiceFactory<HttpServerImplementation>- Parameters:
context-ServiceContext.- Returns:
- Service.
- Throws:
java.lang.Throwable- If fails to create the service.
-
configureHttpServer
public void configureHttpServer(HttpServerImplementationContext context) throws java.lang.Exception
Description copied from interface:HttpServerImplementationConfigures theHttpServer.- Specified by:
configureHttpServerin interfaceHttpServerImplementation- Parameters:
context-HttpServerImplementationContext.- Throws:
java.lang.Exception- If fails to configure theHttpServerImplementation.
-
-