Class UndertowHttpServerImplementation
- java.lang.Object
-
- net.officefloor.server.http.undertow.AbstractUndertowHttpServer
-
- net.officefloor.server.http.undertow.UndertowHttpServerImplementation
-
- All Implemented Interfaces:
OfficeFloorListener,ServiceFactory<HttpServerImplementation>,HttpServerImplementation,HttpServerImplementationFactory
public class UndertowHttpServerImplementation extends AbstractUndertowHttpServer implements HttpServerImplementation, HttpServerImplementationFactory, OfficeFloorListener
UndertowHttpServerImplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description UndertowHttpServerImplementation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigureHttpServer(HttpServerImplementationContext context)Configures theHttpServer.HttpServerImplementationcreateService(ServiceContext context)Creates the service.voidofficeFloorClosed(OfficeFloorEvent event)Notifies that theOfficeFloorhas been closed.voidofficeFloorOpened(OfficeFloorEvent event)Notifies that theOfficeFloorhas been opened.protected ProcessManagerservice(io.undertow.server.HttpServerExchange exchange)Services theHttpServerExchange.-
Methods inherited from class net.officefloor.server.http.undertow.AbstractUndertowHttpServer
startHttpServer, stopHttpServer
-
-
-
-
Method Detail
-
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.
-
officeFloorOpened
public void officeFloorOpened(OfficeFloorEvent event) throws java.lang.Exception
Description copied from interface:OfficeFloorListenerNotifies that theOfficeFloorhas been opened.- Specified by:
officeFloorOpenedin interfaceOfficeFloorListener- Parameters:
event-OfficeFloorEvent.- Throws:
java.lang.Exception- If fails to handle open listen logic.
-
officeFloorClosed
public void officeFloorClosed(OfficeFloorEvent event) throws java.lang.Exception
Description copied from interface:OfficeFloorListenerNotifies that theOfficeFloorhas been closed.- Specified by:
officeFloorClosedin interfaceOfficeFloorListener- Parameters:
event-OfficeFloorEvent.- Throws:
java.lang.Exception- If fails to handle close listen logic.
-
service
protected ProcessManager service(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception
Description copied from class:AbstractUndertowHttpServerServices theHttpServerExchange.- Specified by:
servicein classAbstractUndertowHttpServer- Parameters:
exchange-HttpServerExchange.- Returns:
ProcessManager.- Throws:
java.lang.Exception- If fails to service theHttpServerExchange.
-
-