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:
org.eclipse.jetty.server.ConnectionFactory
,org.eclipse.jetty.util.component.Container
,org.eclipse.jetty.util.component.Destroyable
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.Dumpable.DumpableContainer
,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
HTTP2ServerConnectionFactory
,RawHTTP2ServerConnectionFactory
@ManagedObject
public abstract class AbstractHTTP2ServerConnectionFactory
extends org.eclipse.jetty.server.AbstractConnectionFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.ConnectionFactory
org.eclipse.jetty.server.ConnectionFactory.Detecting, org.eclipse.jetty.server.ConnectionFactory.Upgrading
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
org.eclipse.jetty.util.component.LifeCycle.Listener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate FlowControlStrategy.Factory
private final org.eclipse.jetty.server.HttpConfiguration
private int
private int
private int
private int
private int
private int
private int
private int
private RateControl.Factory
private long
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Constructor Summary
ConstructorsModifierConstructorDescriptionAbstractHTTP2ServerConnectionFactory
(org.eclipse.jetty.server.HttpConfiguration httpConfiguration) protected
AbstractHTTP2ServerConnectionFactory
(org.eclipse.jetty.server.HttpConfiguration httpConfiguration, String... protocols) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.server.HttpConfiguration
int
int
int
int
int
Deprecated.int
int
Deprecated.int
int
int
Deprecated.int
Deprecated.feature removed, no replacementlong
org.eclipse.jetty.io.Connection
newConnection
(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.io.EndPoint endPoint) protected ServerParser
newServerParser
(org.eclipse.jetty.server.Connector connector, RateControl rateControl) protected ServerParser
newServerParser
(org.eclipse.jetty.server.Connector connector, ServerParser.Listener listener, RateControl rateControl) Deprecated.protected abstract ServerSessionListener
newSessionListener
(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.io.EndPoint endPoint) void
setFlowControlStrategyFactory
(FlowControlStrategy.Factory flowControlStrategyFactory) void
setInitialSessionRecvWindow
(int initialSessionRecvWindow) void
setInitialStreamRecvWindow
(int initialStreamRecvWindow) void
setMaxConcurrentStreams
(int maxConcurrentStreams) void
setMaxDecoderTableCapacity
(int maxDecoderTableCapacity) void
setMaxDynamicTableSize
(int maxDynamicTableSize) Deprecated.void
setMaxEncoderTableCapacity
(int maxEncoderTableCapacity) Sets the limit for the encoder HPACK dynamic table capacity.void
setMaxFrameLength
(int maxFrameLength) Deprecated.void
setMaxFrameSize
(int maxFrameSize) void
setMaxHeaderBlockFragment
(int maxHeaderBlockFragment) void
setMaxSettingsKeys
(int maxSettingsKeys) void
setRateControl
(RateControl rateControl) Deprecated.usesetRateControlFactory(RateControl.Factory)
insteadvoid
setRateControlFactory
(RateControl.Factory rateControlFactory) Sets the factory that creates a per-connection RateControl object.void
setReservedThreads
(int threads) Deprecated.feature removed, no replacementvoid
setStreamIdleTimeout
(long streamIdleTimeout) 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, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeans
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, 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.Dumpable
dumpSelf
Methods inherited from interface org.eclipse.jetty.util.component.Dumpable.DumpableContainer
isDumpable
-
Field Details
-
sessionContainer
-
httpConfiguration
private final org.eclipse.jetty.server.HttpConfiguration httpConfiguration -
maxDecoderTableCapacity
private int maxDecoderTableCapacity -
maxEncoderTableCapacity
private int maxEncoderTableCapacity -
initialSessionRecvWindow
private int initialSessionRecvWindow -
initialStreamRecvWindow
private int initialStreamRecvWindow -
maxConcurrentStreams
private int maxConcurrentStreams -
maxHeaderBlockFragment
private int maxHeaderBlockFragment -
maxFrameSize
private int maxFrameSize -
maxSettingsKeys
private int maxSettingsKeys -
rateControlFactory
-
flowControlStrategyFactory
-
streamIdleTimeout
private long streamIdleTimeout
-
-
Constructor Details
-
AbstractHTTP2ServerConnectionFactory
public AbstractHTTP2ServerConnectionFactory(@Name("config") org.eclipse.jetty.server.HttpConfiguration httpConfiguration) -
AbstractHTTP2ServerConnectionFactory
protected AbstractHTTP2ServerConnectionFactory(@Name("config") org.eclipse.jetty.server.HttpConfiguration httpConfiguration, @Name("protocols") String... protocols)
-
-
Method Details
-
getMaxDynamicTableSize
@Deprecated @ManagedAttribute("The HPACK dynamic table maximum size") public int getMaxDynamicTableSize()Deprecated. -
setMaxDynamicTableSize
Deprecated. -
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) -
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
@ManagedAttribute("The max header block fragment") public int getMaxHeaderBlockFragment() -
setMaxHeaderBlockFragment
public void setMaxHeaderBlockFragment(int maxHeaderBlockFragment) -
getFlowControlStrategyFactory
-
setFlowControlStrategyFactory
-
getStreamIdleTimeout
@ManagedAttribute("The stream idle timeout in milliseconds") public long getStreamIdleTimeout() -
setStreamIdleTimeout
public void setStreamIdleTimeout(long streamIdleTimeout) -
getMaxFrameLength
Deprecated. -
setMaxFrameLength
Deprecated. -
getMaxFrameSize
@ManagedAttribute("The max frame size in bytes") public int getMaxFrameSize() -
setMaxFrameSize
public void setMaxFrameSize(int maxFrameSize) -
getMaxSettingsKeys
@ManagedAttribute("The max number of keys in all SETTINGS frames") public int getMaxSettingsKeys() -
setMaxSettingsKeys
public void setMaxSettingsKeys(int maxSettingsKeys) -
getRateControl
Deprecated.usegetRateControlFactory()
instead- Returns:
- null
-
setRateControl
Deprecated.usesetRateControlFactory(RateControl.Factory)
instead- Parameters:
rateControl
- ignored, unlessrateControl
it is precisely a WindowRateControl (not a subclass) object in which case it is used as a prototype in a WindowRateControl.Factory.- Throws:
UnsupportedOperationException
- when invoked, unless precisely a WindowRateControl object
-
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
-
getReservedThreads
Deprecated.feature removed, no replacement- Returns:
- -1
-
setReservedThreads
Deprecated.feature removed, no replacement- Parameters:
threads
- ignored- Throws:
UnsupportedOperationException
- when invoked
-
getHttpConfiguration
public org.eclipse.jetty.server.HttpConfiguration getHttpConfiguration() -
newSettings
-
newConnection
public org.eclipse.jetty.io.Connection newConnection(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.io.EndPoint endPoint) -
newSessionListener
protected abstract ServerSessionListener newSessionListener(org.eclipse.jetty.server.Connector connector, org.eclipse.jetty.io.EndPoint endPoint) -
newServerParser
@Deprecated protected ServerParser newServerParser(org.eclipse.jetty.server.Connector connector, ServerParser.Listener listener, RateControl rateControl) Deprecated. -
newServerParser
protected ServerParser newServerParser(org.eclipse.jetty.server.Connector connector, RateControl rateControl)
-
getRateControlFactory()
instead