Class UndertowServerEngineFactory
- java.lang.Object
-
- org.jboss.wsf.stack.cxf.addons.transports.undertow.UndertowServerEngineFactory
-
- All Implemented Interfaces:
BusLifeCycleListener
public class UndertowServerEngineFactory extends Object implements BusLifeCycleListener
A server engine factory for the undertow engine- Since:
- 19-Aug-2010
- Author:
- Magesh Kumar B
(C) 2011 Red Hat Inc., alessio.soldano@jboss.com
-
-
Constructor Summary
Constructors Constructor Description UndertowServerEngineFactory(Bus b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UndertowServerEnginecreateHttpServerEngine(String host, int port, String protocol)voiddestroyForPort(int port)This method removes the Server Engine from the port map and stops it.BusgetBus()voidinitComplete()Invoked when theBushas been initialized.voidpostShutdown()Invoked after theBusis shutdown.voidpreShutdown()Invoked before theBusis shutdown.UndertowServerEngineretrieveHttpServerEngine(int port)Retrieve a previously configured HttpServerEngine for the given port.voidsetBus(Bus bus)This call is used to set the bus.
-
-
-
Constructor Detail
-
UndertowServerEngineFactory
public UndertowServerEngineFactory(Bus b)
-
-
Method Detail
-
setBus
public final void setBus(Bus bus)
This call is used to set the bus. It should only be called once.- Parameters:
bus-
-
getBus
public Bus getBus()
-
retrieveHttpServerEngine
public UndertowServerEngine retrieveHttpServerEngine(int port)
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
-
-