Class NettyHttpServerEngine
java.lang.Object
org.apache.cxf.transport.http.netty.server.NettyHttpServerEngine
- All Implemented Interfaces:
HttpServerEngineSupport,ServerEngine
- Direct Known Subclasses:
NettyHttpServerEngineBeanDefinitionParser.SpringNettyHttpServerEngine
-
Field Summary
Fields inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
ENABLE_HTTP2 -
Constructor Summary
ConstructorsConstructorDescriptionNettyHttpServerEngine(String host, int port) Deprecated.NettyHttpServerEngine(String host, int port, Bus bus) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServant(URL url, NettyHttpHandler handler) protected voidcheckRegistedContext(URL url) voidio.netty.util.concurrent.EventExecutorGroupio.netty.channel.EventLoopGroupgetBus()getHost()intintgetPort()intgetServant(URL url) Get a previously registered servant.This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration.io.netty.channel.EventLoopGroupintbooleanvoidremoveServant(URL url) Remove a previously registered servant.voidsetApplicationExecutor(io.netty.util.concurrent.EventExecutorGroup applicationExecutor) voidsetBossGroup(io.netty.channel.EventLoopGroup bossGroup) voidvoidvoidsetMaxChunkContentSize(int maxChunkContentSize) voidsetPort(int port) voidsetProtocol(String protocol) voidsetReadIdleTime(int readIdleTime) voidsetSessionSupport(boolean session) voidvoidThis method is used to programmatically set the TLSServerParameters.voidsetWorkerGroup(io.netty.channel.EventLoopGroup workerGroup) voidsetWriteIdleTime(int writeIdleTime) voidshutdown()protected io.netty.channel.ChannelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cxf.transport.http.HttpServerEngineSupport
isHttp2Enabled, isHttp2Required
-
Constructor Details
-
NettyHttpServerEngine
public NettyHttpServerEngine() -
NettyHttpServerEngine
Deprecated. -
NettyHttpServerEngine
-
-
Method Details
-
finalizeConfig
@PostConstruct public void finalizeConfig() -
setBus
-
getBus
-
setTlsServerParameters
This method is used to programmatically set the TLSServerParameters. This method may only be called by the factory. -
getTlsServerParameters
This method returns the programmatically set TLSServerParameters, not the TLSServerParametersType, which is the JAXB generated type used in SpringConfiguration. -
setThreadingParameters
-
getThreadingParameters
-
startServer
protected io.netty.channel.Channel startServer() -
checkRegistedContext
-
addServant
- Specified by:
addServantin interfaceServerEngine
-
removeServant
Description copied from interface:ServerEngineRemove a previously registered servant.- Specified by:
removeServantin interfaceServerEngine- Parameters:
url- the URL the servant was registered against.
-
getServant
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
-
getHost
-
getProtocol
-
setProtocol
-
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)
-