Class HttpServletHttpServerImplementation
java.lang.Object
net.officefloor.server.http.servlet.HttpServletHttpServerImplementation
- All Implemented Interfaces:
ServiceFactory<HttpServerImplementation>,HttpServerImplementation,HttpServerImplementationFactory
public class HttpServletHttpServerImplementation
extends Object
implements HttpServerImplementation, HttpServerImplementationFactory
HttpServerImplementation to validate tests.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceProvides context to load theHttpServletHttpServerImplementation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinFilterchain. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigures theHttpServer.createService(ServiceContext context) Creates the service.static booleanIndicates if running within theOfficeFloorFilter.static HttpServletOfficeFloorBridgeLoads theHttpServletHttpServerImplementation.
-
Field Details
-
SYNC_TEAM_NAME
Name of theThreadLocalAwareTeamSourceto provide synchronous blocking servicing to work withinFilterchain.- See Also:
-
-
Constructor Details
-
HttpServletHttpServerImplementation
public HttpServletHttpServerImplementation()
-
-
Method Details
-
load
public static HttpServletOfficeFloorBridge load(HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader loader) throws Exception Loads theHttpServletHttpServerImplementation.- Parameters:
loader-HttpServletHttpServerImplementation.HttpServletOfficeFloorLoader.- Returns:
HttpServletOfficeFloorBridge.- Throws:
Exception- If fails to load.
-
isWithinOfficeFloorFilter
public static boolean isWithinOfficeFloorFilter()Indicates if running within theOfficeFloorFilter.- Returns:
trueif running withinOfficeFloorFilter.
-
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.
-