public class NettyJaxrsServer extends Object implements EmbeddedJaxrsServer
Modifier and Type | Field and Description |
---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected ResteasyDeployment |
deployment |
protected SecurityDomain |
domain |
protected int |
port |
protected String |
root |
Constructor and Description |
---|
NettyJaxrsServer() |
Modifier and Type | Method and Description |
---|---|
ResteasyDeployment |
getDeployment() |
int |
getPort() |
void |
setBacklog(int backlog) |
void |
setDeployment(ResteasyDeployment deployment) |
void |
setExecutorThreadCount(int executorThreadCount)
Set the number of threads to use for the EventExecutor.
|
void |
setIoWorkerCount(int ioWorkerCount)
Specify the worker count to use.
|
void |
setMaxRequestSize(int maxRequestSize)
Set the max.
|
void |
setPort(int port) |
void |
setRootResourcePath(String rootResourcePath) |
void |
setSecurityDomain(SecurityDomain sc) |
void |
setSSLContext(SSLContext sslContext) |
void |
start() |
void |
stop() |
protected io.netty.bootstrap.ServerBootstrap bootstrap
protected int port
protected ResteasyDeployment deployment
protected String root
protected SecurityDomain domain
public void setSSLContext(SSLContext sslContext)
public void setIoWorkerCount(int ioWorkerCount)
EventLoopGroup
ioWorkerCount
- public void setExecutorThreadCount(int executorThreadCount)
EventExecutor
.
If you want to disable the use of the EventExecutor
specify a value <= 0. This should only be done if you are 100% sure that you don't have any blocking
code in there.executorThreadCount
- public void setMaxRequestSize(int maxRequestSize)
maxRequestSize
- the max request size. This is 10mb by default.public int getPort()
public void setPort(int port)
public void setBacklog(int backlog)
public void setDeployment(ResteasyDeployment deployment)
setDeployment
in interface EmbeddedJaxrsServer
public void setRootResourcePath(String rootResourcePath)
setRootResourcePath
in interface EmbeddedJaxrsServer
public ResteasyDeployment getDeployment()
getDeployment
in interface EmbeddedJaxrsServer
public void setSecurityDomain(SecurityDomain sc)
setSecurityDomain
in interface EmbeddedJaxrsServer
public void start()
start
in interface EmbeddedJaxrsServer
public void stop()
stop
in interface EmbeddedJaxrsServer
Copyright © 2014. All rights reserved.