Package org.eclipse.jetty.http2.server
Class AbstractHTTP2ServerConnectionFactory
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.server.AbstractConnectionFactory
org.eclipse.jetty.http2.server.AbstractHTTP2ServerConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
,Container
,Destroyable
,Dumpable
,Dumpable.DumpableContainer
,LifeCycle
- Direct Known Subclasses:
HTTP2ServerConnectionFactory
,RawHTTP2ServerConnectionFactory
@ManagedObject
public abstract class AbstractHTTP2ServerConnectionFactory
extends AbstractConnectionFactory
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
ConnectionFactory.Configuring, ConnectionFactory.Detecting, ConnectionFactory.Upgrading
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
Container.InheritedListener, Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionAbstractHTTP2ServerConnectionFactory
(HttpConfiguration httpConfiguration) protected
AbstractHTTP2ServerConnectionFactory
(HttpConfiguration httpConfiguration, String... protocols) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
Deprecated.int
int
Deprecated.int
int
int
long
boolean
boolean
boolean
newConnection
(Connector connector, EndPoint endPoint) Creates a newConnection
with the given parametersprotected ServerParser
newServerParser
(Connector connector, RateControl rateControl) protected abstract ServerSessionListener
newSessionListener
(Connector connector, EndPoint endPoint) void
setConnectProtocolEnabled
(boolean connectProtocolEnabled) void
setFlowControlStrategyFactory
(FlowControlStrategy.Factory flowControlStrategyFactory) void
setInitialSessionRecvWindow
(int initialSessionRecvWindow) void
setInitialStreamRecvWindow
(int initialStreamRecvWindow) void
setMaxConcurrentStreams
(int maxConcurrentStreams) void
setMaxDecoderTableCapacity
(int maxDecoderTableCapacity) void
setMaxDynamicTableSize
(int maxTableSize) Deprecated.usesetMaxDecoderTableCapacity(int)
insteadvoid
setMaxEncoderTableCapacity
(int maxEncoderTableCapacity) Sets the limit for the encoder HPACK dynamic table capacity.void
setMaxFrameLength
(int maxFrameSize) Deprecated.void
setMaxFrameSize
(int maxFrameSize) void
setMaxHeaderBlockFragment
(int maxHeaderBlockFragment) void
setMaxSettingsKeys
(int maxSettingsKeys) void
setRateControlFactory
(RateControl.Factory rateControlFactory) Sets the factory that creates a per-connection RateControl object.void
setStreamIdleTimeout
(long streamIdleTimeout) Sets the HTTP/2 stream idle timeout.void
setUseInputDirectByteBuffers
(boolean useInputDirectByteBuffers) void
setUseOutputDirectByteBuffers
(boolean useOutputDirectByteBuffers) Methods inherited from class org.eclipse.jetty.server.AbstractConnectionFactory
configure, findNextProtocol, findNextProtocol, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toString
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.util.component.Container
getCachedBeans, getEventListeners
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Constructor Details
-
AbstractHTTP2ServerConnectionFactory
-
AbstractHTTP2ServerConnectionFactory
protected AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)
-
-
Method Details
-
getMaxEncoderTableCapacity
@ManagedAttribute("The HPACK encoder dynamic table maximum capacity") public int getMaxEncoderTableCapacity() -
setMaxEncoderTableCapacity
public void setMaxEncoderTableCapacity(int maxEncoderTableCapacity) Sets the limit for the encoder HPACK dynamic table capacity.
Setting this value to
0
disables the use of the dynamic table.- Parameters:
maxEncoderTableCapacity
- The HPACK encoder dynamic table maximum capacity
-
getMaxDecoderTableCapacity
@ManagedAttribute("The HPACK decoder dynamic table maximum capacity") public int getMaxDecoderTableCapacity() -
setMaxDecoderTableCapacity
public void setMaxDecoderTableCapacity(int maxDecoderTableCapacity) -
getMaxDynamicTableSize
Deprecated.usegetMaxDecoderTableCapacity()
instead- Returns:
- the max decoder table size
-
setMaxDynamicTableSize
Deprecated.usesetMaxDecoderTableCapacity(int)
instead- Parameters:
maxTableSize
- the max decoder table size
-
getInitialSessionRecvWindow
@ManagedAttribute("The initial size of session\'s flow control receive window") public int getInitialSessionRecvWindow() -
setInitialSessionRecvWindow
public void setInitialSessionRecvWindow(int initialSessionRecvWindow) -
getInitialStreamRecvWindow
@ManagedAttribute("The initial size of stream\'s flow control receive window") public int getInitialStreamRecvWindow() -
setInitialStreamRecvWindow
public void setInitialStreamRecvWindow(int initialStreamRecvWindow) -
getMaxConcurrentStreams
@ManagedAttribute("The max number of concurrent streams per session") public int getMaxConcurrentStreams() -
setMaxConcurrentStreams
public void setMaxConcurrentStreams(int maxConcurrentStreams) -
getMaxHeaderBlockFragment
-
setMaxHeaderBlockFragment
public void setMaxHeaderBlockFragment(int maxHeaderBlockFragment) -
getFlowControlStrategyFactory
-
setFlowControlStrategyFactory
-
getStreamIdleTimeout
-
setStreamIdleTimeout
public void setStreamIdleTimeout(long streamIdleTimeout) Sets the HTTP/2 stream idle timeout.
Value
-1
disables the idle timeout, value0
implies using the default idle timeout, positive values specify the idle timeout in milliseconds.- Parameters:
streamIdleTimeout
- the idle timeout in milliseconds,0
for the default,-1
to disable the idle timeout
-
getMaxFrameLength
Deprecated. -
setMaxFrameLength
Deprecated. -
getMaxFrameSize
-
setMaxFrameSize
public void setMaxFrameSize(int maxFrameSize) -
getMaxSettingsKeys
-
setMaxSettingsKeys
public void setMaxSettingsKeys(int maxSettingsKeys) -
isConnectProtocolEnabled
@ManagedAttribute("Whether CONNECT requests supports a protocol") public boolean isConnectProtocolEnabled() -
setConnectProtocolEnabled
public void setConnectProtocolEnabled(boolean connectProtocolEnabled) -
getRateControlFactory
- Returns:
- the factory that creates RateControl objects
-
setRateControlFactory
Sets the factory that creates a per-connection RateControl object.
- Parameters:
rateControlFactory
- the factory that creates RateControl objects
-
isUseInputDirectByteBuffers
@ManagedAttribute("Whether to use direct ByteBuffers for reading") public boolean isUseInputDirectByteBuffers() -
setUseInputDirectByteBuffers
public void setUseInputDirectByteBuffers(boolean useInputDirectByteBuffers) -
isUseOutputDirectByteBuffers
@ManagedAttribute("Whether to use direct ByteBuffers for writing") public boolean isUseOutputDirectByteBuffers() -
setUseOutputDirectByteBuffers
public void setUseOutputDirectByteBuffers(boolean useOutputDirectByteBuffers) -
getHttpConfiguration
-
newSettings
-
newConnection
Description copied from interface:ConnectionFactory
Creates a new
Connection
with the given parameters- Parameters:
connector
- TheConnector
creating this connectionendPoint
- theEndPoint
associated with the connection- Returns:
- a new
Connection
-
newSessionListener
-
newServerParser
-
getMaxDecoderTableCapacity()
instead