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
HttpServerImplementationto validate tests.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHttpServletHttpServerImplementation.HttpServletOfficeFloorLoaderProvides context to load theHttpServletHttpServerImplementation.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSYNC_TEAM_NAMEName of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinFilterchain.
-
Constructor Summary
Constructors Constructor Description HttpServletHttpServerImplementation()
-
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.static booleanisWithinOfficeFloorFilter()Indicates if running within theOfficeFloorFilter.static HttpServletOfficeFloorBridgeload(HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader loader)Loads theHttpServletHttpServerImplementation.
-
-
-
Field Detail
-
SYNC_TEAM_NAME
public static final java.lang.String SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinFilterchain.- 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:
trueif running withinOfficeFloorFilter.
-
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)
Description copied from interface:HttpServerImplementationConfigures theHttpServer.- Specified by:
configureHttpServerin interfaceHttpServerImplementation- Parameters:
context-HttpServerImplementationContext.
-
-