Class UndertowServerEngineFactory
java.lang.Object
org.jboss.wsf.stack.cxf.addons.transports.undertow.UndertowServerEngineFactory
- All Implemented Interfaces:
BusLifeCycleListener
A server engine factory for the undertow engine
- Since:
- 19-Aug-2010
- Author:
- Magesh Kumar B <mageshbk@jboss.com> (C) 2011 Red Hat Inc., alessio.soldano@jboss.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHttpServerEngine(String host, int port, String protocol) voiddestroyForPort(int port) This method removes the Server Engine from the port map and stops it.getBus()voidInvoked when theBushas been initialized.voidInvoked after theBusis shutdown.voidInvoked before theBusis shutdown.retrieveHttpServerEngine(int port) Retrieve a previously configured HttpServerEngine for the given port.final voidThis call is used to set the bus.
-
Constructor Details
-
UndertowServerEngineFactory
-
-
Method Details
-
setBus
This call is used to set the bus. It should only be called once.- Parameters:
bus-
-
getBus
-
retrieveHttpServerEngine
Retrieve a previously configured HttpServerEngine for the given port. If none exists, this call returns null. -
createHttpServerEngine
public UndertowServerEngine createHttpServerEngine(String host, int port, String protocol) throws IOException - Throws:
IOException
-
destroyForPort
public void destroyForPort(int port) This method removes the Server Engine from the port map and stops it. -
initComplete
public void initComplete()Description copied from interface:BusLifeCycleListenerInvoked when theBushas been initialized.- Specified by:
initCompletein interfaceBusLifeCycleListener
-
postShutdown
public void postShutdown()Description copied from interface:BusLifeCycleListenerInvoked after theBusis shutdown.- Specified by:
postShutdownin interfaceBusLifeCycleListener
-
preShutdown
public void preShutdown()Description copied from interface:BusLifeCycleListenerInvoked before theBusis shutdown.- Specified by:
preShutdownin interfaceBusLifeCycleListener
-