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
-
-
Field Summary
-
Fields inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
ENABLE_HTTP2
-
-
Constructor Summary
Constructors Constructor Description NettyHttpServerEngine()NettyHttpServerEngine(String host, int port)Deprecated.NettyHttpServerEngine(String host, int port, Bus bus)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServant(URL url, NettyHttpHandler handler)protected voidcheckRegistedContext(URL url)voidfinalizeConfig()io.netty.util.concurrent.EventExecutorGroupgetApplicationExecutor()io.netty.channel.EventLoopGroupgetBossGroup()BusgetBus()StringgetHost()intgetMaxChunkContentSize()intgetPort()StringgetProtocol()intgetReadIdleTime()NettyHttpHandlergetServant(URL url)Get a previously registered servant.ThreadingParametersgetThreadingParameters()TLSServerParametersgetTlsServerParameters()This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration.io.netty.channel.EventLoopGroupgetWorkerGroup()intgetWriteIdleTime()booleanisSessionSupport()voidremoveServant(URL url)Remove a previously registered servant.voidsetApplicationExecutor(io.netty.util.concurrent.EventExecutorGroup applicationExecutor)voidsetBossGroup(io.netty.channel.EventLoopGroup bossGroup)voidsetBus(Bus bus)voidsetHost(String host)voidsetMaxChunkContentSize(int maxChunkContentSize)voidsetPort(int port)voidsetProtocol(String protocol)voidsetReadIdleTime(int readIdleTime)voidsetSessionSupport(boolean session)voidsetThreadingParameters(ThreadingParameters params)voidsetTlsServerParameters(TLSServerParameters params)This method is used to programmatically set the TLSServerParameters.voidsetWorkerGroup(io.netty.channel.EventLoopGroup workerGroup)voidsetWriteIdleTime(int writeIdleTime)voidshutdown()protected io.netty.channel.ChannelstartServer()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
isHttp2Enabled, isHttp2Required
-
-
-
-
Constructor Detail
-
NettyHttpServerEngine
public NettyHttpServerEngine()
-
NettyHttpServerEngine
@Deprecated public NettyHttpServerEngine(String host, int port)
Deprecated.
-
-
Method Detail
-
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:
addServantin interfaceServerEngine
-
removeServant
public void removeServant(URL url)
Description copied from interface:ServerEngineRemove a previously registered servant.- Specified by:
removeServantin interfaceServerEngine- Parameters:
url- the URL the servant was registered against.
-
getServant
public NettyHttpHandler getServant(URL url)
Description copied from interface:ServerEngineGet a previously registered servant.- Specified by:
getServantin interfaceServerEngine- 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)
-
-