Class NettyHttpServerEngine

java.lang.Object
org.apache.cxf.transport.http.netty.server.NettyHttpServerEngine
All Implemented Interfaces:
HttpServerEngineSupport, ServerEngine
Direct Known Subclasses:
NettyHttpServerEngineBeanDefinitionParser.SpringNettyHttpServerEngine

public class NettyHttpServerEngine extends Object implements ServerEngine, HttpServerEngineSupport
  • Constructor Details

    • NettyHttpServerEngine

      public NettyHttpServerEngine()
    • NettyHttpServerEngine

      @Deprecated public NettyHttpServerEngine(String host, int port)
      Deprecated.
    • NettyHttpServerEngine

      public NettyHttpServerEngine(String host, int port, Bus bus)
  • Method Details

    • finalizeConfig

      @PostConstruct public void finalizeConfig()
    • setBus

      public void setBus(Bus bus)
    • getBus

      public Bus getBus()
    • setTlsServerParameters

      public void setTlsServerParameters(TLSServerParameters params)
      This method is used to programmatically set the TLSServerParameters. This method may only be called by the factory.
    • getTlsServerParameters

      public TLSServerParameters getTlsServerParameters()
      This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration.
    • setThreadingParameters

      public void setThreadingParameters(ThreadingParameters params)
    • getThreadingParameters

      public ThreadingParameters getThreadingParameters()
    • startServer

      protected io.netty.channel.Channel startServer()
    • checkRegistedContext

      protected void checkRegistedContext(URL url)
    • addServant

      public void addServant(URL url, NettyHttpHandler handler)
      Specified by:
      addServant in interface ServerEngine
    • removeServant

      public void removeServant(URL url)
      Description copied from interface: ServerEngine
      Remove a previously registered servant.
      Specified by:
      removeServant in interface ServerEngine
      Parameters:
      url - the URL the servant was registered against.
    • getServant

      public NettyHttpHandler getServant(URL url)
      Description copied from interface: ServerEngine
      Get a previously registered servant.
      Specified by:
      getServant in interface ServerEngine
      Parameters:
      url - the associated URL
      Returns:
      the HttpHandler if registered
    • shutdown

      public void shutdown()
    • getReadIdleTime

      public int getReadIdleTime()
    • setReadIdleTime

      public void setReadIdleTime(int readIdleTime)
    • getWriteIdleTime

      public int getWriteIdleTime()
    • setWriteIdleTime

      public void setWriteIdleTime(int writeIdleTime)
    • isSessionSupport

      public boolean isSessionSupport()
    • setSessionSupport

      public void setSessionSupport(boolean session)
    • getMaxChunkContentSize

      public int getMaxChunkContentSize()
    • setMaxChunkContentSize

      public void setMaxChunkContentSize(int maxChunkContentSize)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • setHost

      public void setHost(String host)
    • getHost

      public String getHost()
    • getProtocol

      public String getProtocol()
    • setProtocol

      public void setProtocol(String protocol)
    • setBossGroup

      public void setBossGroup(io.netty.channel.EventLoopGroup bossGroup)
    • getBossGroup

      public io.netty.channel.EventLoopGroup getBossGroup()
    • setWorkerGroup

      public void setWorkerGroup(io.netty.channel.EventLoopGroup workerGroup)
    • getWorkerGroup

      public io.netty.channel.EventLoopGroup getWorkerGroup()
    • getApplicationExecutor

      public io.netty.util.concurrent.EventExecutorGroup getApplicationExecutor()
    • setApplicationExecutor

      public void setApplicationExecutor(io.netty.util.concurrent.EventExecutorGroup applicationExecutor)