Apache CXF API

org.apache.cxf.transport.http.netty.server
Class NettyHttpServerEngineFactory

java.lang.Object
  extended by org.apache.cxf.transport.http.netty.server.NettyHttpServerEngineFactory
All Implemented Interfaces:
BusLifeCycleListener
Direct Known Subclasses:
NettyHttpServerEngineFactoryBeanDefinitionParser.SpringNettyHttpServerEngineFactory

public class NettyHttpServerEngineFactory
extends Object
implements BusLifeCycleListener


Constructor Summary
NettyHttpServerEngineFactory()
           
NettyHttpServerEngineFactory(Bus b)
           
NettyHttpServerEngineFactory(Bus b, Map<String,TLSServerParameters> tls, Map<String,ThreadingParameters> threads)
           
 
Method Summary
 NettyHttpServerEngine createNettyHttpServerEngine(int port, String protocol)
           
 NettyHttpServerEngine createNettyHttpServerEngine(String host, int port, String protocol)
           
static void destroyForPort(int port)
          This method removes the Server Engine from the port map and stops it.
 Bus getBus()
           
 Map<String,ThreadingParameters> getThreadingParametersMap()
           
 Map<String,TLSServerParameters> getTlsServerParametersMap()
           
 void initComplete()
          Invoked when the Bus has been initialized.
 void postShutdown()
          Invoked after the Bus is shutdown.
 void preShutdown()
          Invoked before the Bus is shutdown.
 NettyHttpServerEngine retrieveNettyHttpServerEngine(int port)
           
 void setBus(Bus bus)
          This call is used to set the bus.
 void setEnginesList(List<NettyHttpServerEngine> enginesList)
           
 void setThreadingParametersMap(Map<String,ThreadingParameters> parameterMap)
           
 void setTlsServerParameters(Map<String,TLSServerParameters> tlsParametersMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NettyHttpServerEngineFactory

public NettyHttpServerEngineFactory()

NettyHttpServerEngineFactory

public NettyHttpServerEngineFactory(Bus b)

NettyHttpServerEngineFactory

public NettyHttpServerEngineFactory(Bus b,
                                    Map<String,TLSServerParameters> tls,
                                    Map<String,ThreadingParameters> threads)
Method Detail

getBus

public Bus getBus()

setBus

public final void setBus(Bus bus)
This call is used to set the bus. It should only be called once.

Parameters:
bus -

getTlsServerParametersMap

public Map<String,TLSServerParameters> getTlsServerParametersMap()

setTlsServerParameters

public void setTlsServerParameters(Map<String,TLSServerParameters> tlsParametersMap)

getThreadingParametersMap

public Map<String,ThreadingParameters> getThreadingParametersMap()

setThreadingParametersMap

public void setThreadingParametersMap(Map<String,ThreadingParameters> parameterMap)

setEnginesList

public void setEnginesList(List<NettyHttpServerEngine> enginesList)

initComplete

public void initComplete()
Description copied from interface: BusLifeCycleListener
Invoked when the Bus has been initialized.

Specified by:
initComplete in interface BusLifeCycleListener

postShutdown

public void postShutdown()
Description copied from interface: BusLifeCycleListener
Invoked after the Bus is shutdown.

Specified by:
postShutdown in interface BusLifeCycleListener

preShutdown

public void preShutdown()
Description copied from interface: BusLifeCycleListener
Invoked before the Bus is shutdown.

Specified by:
preShutdown in interface BusLifeCycleListener

retrieveNettyHttpServerEngine

public NettyHttpServerEngine retrieveNettyHttpServerEngine(int port)

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.


Apache CXF API

Apache CXF