public class NettyHttpServerTransport extends AbstractLifecycleComponent<HttpServerTransport> implements HttpServerTransport
Modifier and Type | Class and Description |
---|---|
protected static class |
NettyHttpServerTransport.HttpChannelPipelineFactory |
lifecycle
deprecationLogger, logger, settings
Constructor and Description |
---|
NettyHttpServerTransport(Settings settings,
NetworkService networkService,
BigArrays bigArrays) |
Modifier and Type | Method and Description |
---|---|
BoundTransportAddress |
boundAddress() |
org.jboss.netty.channel.ChannelPipelineFactory |
configureServerChannelPipelineFactory() |
protected void |
dispatchRequest(RestRequest request,
RestChannel channel) |
protected void |
doClose() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.ExceptionEvent e) |
CorsConfig |
getCorsConfig() |
void |
httpServerAdapter(HttpServerAdapter httpServerAdapter) |
HttpInfo |
info() |
Settings |
settings() |
HttpStats |
stats() |
addLifecycleListener, close, lifecycleState, removeLifecycleListener, start, stop
logDeprecatedSetting, logRemovedSetting, nodeName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifecycleListener, lifecycleState, removeLifecycleListener, start, stop
close
public static final String SETTING_CORS_ENABLED
public static final String SETTING_CORS_ALLOW_ORIGIN
public static final String SETTING_CORS_MAX_AGE
public static final String SETTING_CORS_ALLOW_METHODS
public static final String SETTING_CORS_ALLOW_HEADERS
public static final String SETTING_CORS_ALLOW_CREDENTIALS
public static final String SETTING_PIPELINING
public static final String SETTING_PIPELINING_MAX_EVENTS
public static final String SETTING_HTTP_COMPRESSION
public static final String SETTING_HTTP_COMPRESSION_LEVEL
public static final String SETTING_HTTP_DETAILED_ERRORS_ENABLED
public static final boolean DEFAULT_SETTING_PIPELINING
public static final int DEFAULT_SETTING_PIPELINING_MAX_EVENTS
public static final String DEFAULT_PORT_RANGE
protected final NetworkService networkService
protected final BigArrays bigArrays
protected final ByteSizeValue maxContentLength
protected final ByteSizeValue maxInitialLineLength
protected final ByteSizeValue maxHeaderSize
protected final ByteSizeValue maxChunkSize
protected final int workerCount
protected final boolean blockingServer
protected final boolean pipelining
protected final int pipeliningMaxEvents
protected final boolean compression
protected final int compressionLevel
protected final boolean resetCookies
protected final String port
protected final String[] bindHosts
protected final String[] publishHosts
protected final boolean detailedErrorsEnabled
protected final String tcpNoDelay
protected final String tcpKeepAlive
protected final boolean reuseAddress
protected final ByteSizeValue tcpSendBufferSize
protected final ByteSizeValue tcpReceiveBufferSize
protected final org.jboss.netty.channel.ReceiveBufferSizePredictorFactory receiveBufferSizePredictorFactory
protected final ByteSizeValue maxCumulationBufferCapacity
protected final int maxCompositeBufferComponents
protected volatile org.jboss.netty.bootstrap.ServerBootstrap serverBootstrap
protected volatile BoundTransportAddress boundAddress
protected volatile List<org.jboss.netty.channel.Channel> serverChannels
protected volatile HttpServerAdapter httpServerAdapter
@Inject public NettyHttpServerTransport(Settings settings, NetworkService networkService, BigArrays bigArrays)
public Settings settings()
public void httpServerAdapter(HttpServerAdapter httpServerAdapter)
httpServerAdapter
in interface HttpServerTransport
protected void doStart()
doStart
in class AbstractLifecycleComponent<HttpServerTransport>
protected void doStop()
doStop
in class AbstractLifecycleComponent<HttpServerTransport>
protected void doClose()
doClose
in class AbstractLifecycleComponent<HttpServerTransport>
public BoundTransportAddress boundAddress()
boundAddress
in interface HttpServerTransport
public HttpInfo info()
info
in interface HttpServerTransport
public HttpStats stats()
stats
in interface HttpServerTransport
public CorsConfig getCorsConfig()
protected void dispatchRequest(RestRequest request, RestChannel channel)
protected void exceptionCaught(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.ExceptionEvent e) throws Exception
Exception
public org.jboss.netty.channel.ChannelPipelineFactory configureServerChannelPipelineFactory()
Copyright © 2009–2016. All rights reserved.