Class NettyHttpServerEngineFactory
java.lang.Object
org.apache.cxf.transport.http.netty.server.NettyHttpServerEngineFactory
- All Implemented Interfaces:
BusLifeCycleListener
- Direct Known Subclasses:
NettyHttpServerEngineFactoryBeanDefinitionParser.SpringNettyHttpServerEngineFactory
-
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpServerEngineFactory(Bus b, Map<String, TLSServerParameters> tls, Map<String, ThreadingParameters> threads) -
Method Summary
Modifier and TypeMethodDescriptioncreateNettyHttpServerEngine(int port, String protocol) createNettyHttpServerEngine(String host, int port, String protocol) static 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.retrieveNettyHttpServerEngine(int port) final voidThis call is used to set the bus.voidsetEnginesList(List<NettyHttpServerEngine> enginesList) voidsetThreadingParametersMap(Map<String, ThreadingParameters> parameterMap) voidsetTlsServerParameters(Map<String, TLSServerParameters> tlsParametersMap)
-
Constructor Details
-
NettyHttpServerEngineFactory
public NettyHttpServerEngineFactory() -
NettyHttpServerEngineFactory
-
NettyHttpServerEngineFactory
public NettyHttpServerEngineFactory(Bus b, Map<String, TLSServerParameters> tls, Map<String, ThreadingParameters> threads)
-
-
Method Details
-
getBus
-
setBus
This call is used to set the bus. It should only be called once.- Parameters:
bus-
-
getTlsServerParametersMap
-
setTlsServerParameters
-
getThreadingParametersMap
-
setThreadingParametersMap
-
setEnginesList
-
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
-
retrieveNettyHttpServerEngine
-
createNettyHttpServerEngine
public NettyHttpServerEngine createNettyHttpServerEngine(String host, int port, String protocol) throws IOException - Throws:
IOException
-
createNettyHttpServerEngine
public NettyHttpServerEngine createNettyHttpServerEngine(int port, String protocol) throws IOException - Throws:
IOException
-
destroyForPort
public static void destroyForPort(int port) This method removes the Server Engine from the port map and stops it.
-