Class NettyJaxrsServer
java.lang.Object
org.jboss.resteasy.plugins.server.netty.NettyJaxrsServer
- All Implemented Interfaces:
EmbeddedJaxrsServer<NettyJaxrsServer>
,EmbeddedServer
- Direct Known Subclasses:
CdiNettyJaxrsServer
@Deprecated(forRemoval=true,
since="6.2.13.Final")
public class NettyJaxrsServer
extends Object
implements EmbeddedJaxrsServer<NettyJaxrsServer>
Deprecated, for removal: This API element is subject to removal in a future version.
use the new dependencies
An HTTP server that sends back the content of the received HTTP request
in a pretty plaintext form.
- Version:
- $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
- Author:
- The Netty Project, Andy Taylor (andy.taylor@jboss.org), Trustin Lee, Norman Maurer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected io.netty.bootstrap.ServerBootstrap
Deprecated, for removal: This API element is subject to removal in a future version.protected int
Deprecated, for removal: This API element is subject to removal in a future version.protected ResteasyDeployment
Deprecated, for removal: This API element is subject to removal in a future version.protected SecurityDomain
Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.protected String
Deprecated, for removal: This API element is subject to removal in a future version.protected int
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected RequestDispatcher
Deprecated, for removal: This API element is subject to removal in a future version.deploy()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Returns the deployment being used for the server.Deprecated, for removal: This API element is subject to removal in a future version.int
Deprecated, for removal: This API element is subject to removal in a future version.int
getPort()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.setBacklog
(int backlog) Deprecated, for removal: This API element is subject to removal in a future version.setChannelHandlers
(List<io.netty.channel.ChannelHandler> channelHandlers) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalChannelHandler
s to theServerBootstrap
.setChannelOptions
(Map<io.netty.channel.ChannelOption, Object> channelOptions) Deprecated, for removal: This API element is subject to removal in a future version.Add NettyChannelOption
s to theServerBootstrap
.setChildChannelOptions
(Map<io.netty.channel.ChannelOption, Object> channelOptions) Deprecated, for removal: This API element is subject to removal in a future version.Add child options to theServerBootstrap
.setDeployment
(ResteasyDeployment deployment) Deprecated, for removal: This API element is subject to removal in a future version.setExecutorThreadCount
(int executorThreadCount) Deprecated, for removal: This API element is subject to removal in a future version.Set the number of threads to use for the EventExecutor.setHostname
(String hostname) Deprecated, for removal: This API element is subject to removal in a future version.setHttpChannelHandlers
(List<io.netty.channel.ChannelHandler> httpChannelHandlers) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalChannelHandler
s to theServerBootstrap
.setIdleTimeout
(int idleTimeoutSeconds) Deprecated, for removal: This API element is subject to removal in a future version.Set the idle timeout.setIoWorkerCount
(int ioWorkerCount) Deprecated, for removal: This API element is subject to removal in a future version.Specify the worker count to use.setMaxChunkSize
(int maxChunkSize) Deprecated, for removal: This API element is subject to removal in a future version.setMaxHeaderSize
(int maxHeaderSize) Deprecated, for removal: This API element is subject to removal in a future version.setMaxInitialLineLength
(int maxInitialLineLength) Deprecated, for removal: This API element is subject to removal in a future version.setMaxRequestSize
(int maxRequestSize) Deprecated, for removal: This API element is subject to removal in a future version.Set the max.setPort
(int port) Deprecated, for removal: This API element is subject to removal in a future version.setRootResourcePath
(String rootResourcePath) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.setSniConfiguration
(SniConfiguration sniConfiguration) Deprecated, for removal: This API element is subject to removal in a future version.setSSLContext
(SSLContext sslContext) Deprecated, for removal: This API element is subject to removal in a future version.start()
Deprecated, for removal: This API element is subject to removal in a future version.void
start
(jakarta.ws.rs.SeBootstrap.Configuration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Starts the server synchronously.void
stop()
Deprecated, for removal: This API element is subject to removal in a future version.Stops the server.
-
Field Details
-
bootstrap
protected io.netty.bootstrap.ServerBootstrap bootstrapDeprecated, for removal: This API element is subject to removal in a future version. -
hostname
Deprecated, for removal: This API element is subject to removal in a future version. -
configuredPort
protected int configuredPortDeprecated, for removal: This API element is subject to removal in a future version. -
runtimePort
protected int runtimePortDeprecated, for removal: This API element is subject to removal in a future version. -
deployment
Deprecated, for removal: This API element is subject to removal in a future version. -
root
Deprecated, for removal: This API element is subject to removal in a future version. -
domain
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
NettyJaxrsServer
public NettyJaxrsServer()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
deploy
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
deploy
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
start
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
start
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
start
public void start(jakarta.ws.rs.SeBootstrap.Configuration configuration) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EmbeddedServer
Starts the server synchronously.- Specified by:
start
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
- Specified by:
start
in interfaceEmbeddedServer
- Parameters:
configuration
- the configuration used to configure the server
-
stop
public void stop()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EmbeddedServer
Stops the server.- Specified by:
stop
in interfaceEmbeddedServer
-
getDeployment
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:EmbeddedServer
Returns the deployment being used for the server.- Specified by:
getDeployment
in interfaceEmbeddedServer
- Returns:
- the deployment
-
setDeployment
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setDeployment
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
setPort
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setPort
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
getPort
public int getPort()Deprecated, for removal: This API element is subject to removal in a future version. -
setHostname
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setHostname
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
getHostname
Deprecated, for removal: This API element is subject to removal in a future version. -
setRootResourcePath
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setRootResourcePath
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
setSecurityDomain
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setSecurityDomain
in interfaceEmbeddedJaxrsServer<NettyJaxrsServer>
-
setSSLContext
Deprecated, for removal: This API element is subject to removal in a future version. -
setSniConfiguration
Deprecated, for removal: This API element is subject to removal in a future version. -
getSniConfiguration
Deprecated, for removal: This API element is subject to removal in a future version. -
setIoWorkerCount
Deprecated, for removal: This API element is subject to removal in a future version.Specify the worker count to use. For more information about this please see the javadocs ofEventLoopGroup
- Parameters:
ioWorkerCount
- worker count
-
setExecutorThreadCount
Deprecated, for removal: This API element is subject to removal in a future version.Set the number of threads to use for the EventExecutor. For more information please see the javadocs ofEventExecutor
. If you want to disable the use of theEventExecutor
specify a value <= 0. This should only be done if you are 100% sure that you don't have any blocking code in there.- Parameters:
executorThreadCount
- thread count
-
setMaxRequestSize
Deprecated, for removal: This API element is subject to removal in a future version.Set the max. request size in bytes. If this size is exceed we will send a "413 Request Entity Too Large" to the client.- Parameters:
maxRequestSize
- the max request size. This is 10mb by default.
-
setMaxInitialLineLength
Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxHeaderSize
Deprecated, for removal: This API element is subject to removal in a future version. -
setMaxChunkSize
Deprecated, for removal: This API element is subject to removal in a future version. -
setBacklog
Deprecated, for removal: This API element is subject to removal in a future version. -
getIdleTimeout
public int getIdleTimeout()Deprecated, for removal: This API element is subject to removal in a future version. -
setIdleTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Set the idle timeout. Set this value to turn on idle connection cleanup. If there is no traffic within idleTimeoutSeconds, it'll close connection.- Parameters:
idleTimeoutSeconds
- - How many seconds to cleanup client connection. default value -1 meaning no idle timeout.
-
setChannelHandlers
Deprecated, for removal: This API element is subject to removal in a future version.Add additionalChannelHandler
s to theServerBootstrap
.The additional channel handlers are being added before the HTTP handling.
- Parameters:
channelHandlers
- the additionalChannelHandler
s.
-
setHttpChannelHandlers
public NettyJaxrsServer setHttpChannelHandlers(List<io.netty.channel.ChannelHandler> httpChannelHandlers) Deprecated, for removal: This API element is subject to removal in a future version.Add additionalChannelHandler
s to theServerBootstrap
.The additional channel handlers are being added after the HTTP handling.
- Parameters:
httpChannelHandlers
- the additionalChannelHandler
s.
-
setChannelOptions
public NettyJaxrsServer setChannelOptions(Map<io.netty.channel.ChannelOption, Object> channelOptions) Deprecated, for removal: This API element is subject to removal in a future version.Add NettyChannelOption
s to theServerBootstrap
.- Parameters:
channelOptions
- the additionalChannelOption
s.- See Also:
-
setChildChannelOptions
public NettyJaxrsServer setChildChannelOptions(Map<io.netty.channel.ChannelOption, Object> channelOptions) Deprecated, for removal: This API element is subject to removal in a future version.Add child options to theServerBootstrap
.- Parameters:
channelOptions
- the additional childChannelOption
s.- See Also:
-
createRequestDispatcher
Deprecated, for removal: This API element is subject to removal in a future version.
-