public class SofaNettyJaxrsServer extends Object implements org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServer
NettyJaxrsServer| 限定符和类型 | 字段和说明 |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected boolean |
daemon |
protected org.jboss.resteasy.spi.ResteasyDeployment |
deployment |
protected org.jboss.resteasy.plugins.server.embedded.SecurityDomain |
domain |
protected String |
hostname |
protected boolean |
keepAlive |
protected int |
port |
protected String |
root |
protected boolean |
telnet |
| 构造器和说明 |
|---|
SofaNettyJaxrsServer() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.jboss.resteasy.plugins.server.netty.RequestDispatcher |
createRequestDispatcher() |
org.jboss.resteasy.spi.ResteasyDeployment |
getDeployment() |
String |
getHostname() |
int |
getPort() |
void |
setBacklog(int backlog) |
void |
setChannelHandlers(List<io.netty.channel.ChannelHandler> channelHandlers)
Add additional
ChannelHandlers to the ServerBootstrap. |
void |
setChannelOptions(Map<io.netty.channel.ChannelOption,Object> channelOptions)
Add Netty
ChannelOptions to the ServerBootstrap. |
void |
setChildChannelOptions(Map<io.netty.channel.ChannelOption,Object> channelOptions)
Add child options to the
ServerBootstrap. |
void |
setDaemon(boolean daemon) |
void |
setDeployment(org.jboss.resteasy.spi.ResteasyDeployment deployment) |
void |
setExecutorThreadCount(int executorThreadCount)
Set the number of threads to use for the EventExecutor.
|
void |
setHostname(String hostname) |
void |
setHttpChannelHandlers(List<io.netty.channel.ChannelHandler> httpChannelHandlers)
Add additional
ChannelHandlers to the ServerBootstrap. |
void |
setIoWorkerCount(int ioWorkerCount)
Specify the worker count to use.
|
void |
setKeepAlive(boolean keepAlive) |
void |
setMaxRequestSize(int maxRequestSize)
Set the max. request size in bytes.
|
void |
setPort(int port) |
void |
setRootResourcePath(String rootResourcePath) |
void |
setSecurityDomain(org.jboss.resteasy.plugins.server.embedded.SecurityDomain sc) |
void |
setSSLContext(SSLContext sslContext) |
void |
setTelnet(boolean telnet) |
void |
start() |
void |
stop() |
protected io.netty.bootstrap.ServerBootstrap bootstrap
protected String hostname
protected int port
protected org.jboss.resteasy.spi.ResteasyDeployment deployment
protected String root
protected org.jboss.resteasy.plugins.server.embedded.SecurityDomain domain
protected boolean keepAlive
protected boolean telnet
protected boolean daemon
public void setSSLContext(SSLContext sslContext)
public void setIoWorkerCount(int ioWorkerCount)
EventLoopGroupioWorkerCount - 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 String getHostname()
public void setHostname(String hostname)
public int getPort()
public void setPort(int port)
public void setBacklog(int backlog)
public void setChannelHandlers(List<io.netty.channel.ChannelHandler> channelHandlers)
ChannelHandlers to the ServerBootstrap.
The additional channel handlers are being added before the HTTP handling.
channelHandlers - the additional ChannelHandlers.public void setHttpChannelHandlers(List<io.netty.channel.ChannelHandler> httpChannelHandlers)
ChannelHandlers to the ServerBootstrap.
The additional channel handlers are being added after the HTTP handling.
httpChannelHandlers - the additional ChannelHandlers.public void setChannelOptions(Map<io.netty.channel.ChannelOption,Object> channelOptions)
ChannelOptions to the ServerBootstrap.channelOptions - the additional ChannelOptions.AbstractBootstrap.option(io.netty.channel.ChannelOption, Object)public void setChildChannelOptions(Map<io.netty.channel.ChannelOption,Object> channelOptions)
ServerBootstrap.channelOptions - the additional child ChannelOptions.ServerBootstrap.childOption(io.netty.channel.ChannelOption, Object)public void setDeployment(org.jboss.resteasy.spi.ResteasyDeployment deployment)
setDeployment 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerpublic void setRootResourcePath(String rootResourcePath)
setRootResourcePath 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerpublic org.jboss.resteasy.spi.ResteasyDeployment getDeployment()
getDeployment 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerpublic void setSecurityDomain(org.jboss.resteasy.plugins.server.embedded.SecurityDomain sc)
setSecurityDomain 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerprotected org.jboss.resteasy.plugins.server.netty.RequestDispatcher createRequestDispatcher()
public void start()
start 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerpublic void stop()
stop 在接口中 org.jboss.resteasy.plugins.server.embedded.EmbeddedJaxrsServerpublic void setKeepAlive(boolean keepAlive)
public void setTelnet(boolean telnet)
public void setDaemon(boolean daemon)
Copyright © 2008–2018 The Ant Financial. All rights reserved.