Class HttpServletHttpServerImplementation
- java.lang.Object
-
- net.officefloor.server.http.servlet.HttpServletHttpServerImplementation
-
- All Implemented Interfaces:
ServiceFactory<HttpServerImplementation>
,HttpServerImplementation
,HttpServerImplementationFactory
public class HttpServletHttpServerImplementation extends java.lang.Object implements HttpServerImplementation, HttpServerImplementationFactory
HttpServerImplementation
to validate tests.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader
Provides context to load theHttpServletHttpServerImplementation
.
-
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 withinFilter
chain.
-
Constructor Summary
Constructors Constructor Description HttpServletHttpServerImplementation()
-
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.static boolean
isWithinOfficeFloorFilter()
Indicates if running within theOfficeFloorFilter
.static HttpServletOfficeFloorBridge
load(HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader loader)
Loads theHttpServletHttpServerImplementation
.
-
-
-
Field Detail
-
SYNC_TEAM_NAME
public static final java.lang.String SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSource
to provide synchronous blocking servicing to work withinFilter
chain.- See Also:
- Constant Field Values
-
-
Method Detail
-
load
public static HttpServletOfficeFloorBridge load(HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader loader) throws java.lang.Exception
Loads theHttpServletHttpServerImplementation
.- Parameters:
loader
-HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader
.- Returns:
HttpServletOfficeFloorBridge
.- Throws:
java.lang.Exception
- If fails to load.
-
isWithinOfficeFloorFilter
public static boolean isWithinOfficeFloorFilter()
Indicates if running within theOfficeFloorFilter
.- Returns:
true
if running withinOfficeFloorFilter
.
-
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)
Description copied from interface:HttpServerImplementation
Configures theHttpServer
.- Specified by:
configureHttpServer
in interfaceHttpServerImplementation
- Parameters:
context
-HttpServerImplementationContext
.
-
-