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.String
SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSource
to 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 void
configureHttpServer(HttpServerImplementationContext context)
Configures theHttpServer
.HttpServerImplementation
createService(ServiceContext context)
Creates the service.HttpServerLocation
getHttpServerLocation()
Obtains theHttpServerLocation
.ExternalServiceInput<ServerHttpConnection,ProcessAwareServerHttpConnectionManagedObject>
getInput()
Obtains theExternalServiceInput
to service the AWS API event.java.util.logging.Logger
getLogger()
Obtains theLogger
.static SamHttpServerImplementation
getSamHttpServerImplementation()
Obtains theSamHttpServerImplementation
.boolean
isIncludeEscalationStackTrace()
Indicates if include stack trace in HTTP responses.
-
-
-
Field Detail
-
SYNC_TEAM_NAME
public static final java.lang.String SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSource
to 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 theExternalServiceInput
to service the AWS API event.- Returns:
ExternalServiceInput
to service the AWS API event.
-
isIncludeEscalationStackTrace
public boolean isIncludeEscalationStackTrace()
Indicates if include stack trace in HTTP responses.- Returns:
true
to 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:ServiceFactory
Creates the service.- Specified by:
createService
in 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:HttpServerImplementation
Configures theHttpServer
.- Specified by:
configureHttpServer
in interfaceHttpServerImplementation
- Parameters:
context
-HttpServerImplementationContext
.- Throws:
java.lang.Exception
- If fails to configure theHttpServerImplementation
.
-
-