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
,org.eclipse.jetty.util.component.Container
,org.eclipse.jetty.util.component.Destroyable
,org.eclipse.jetty.util.component.Dumpable
,org.eclipse.jetty.util.component.LifeCycle
- Direct Known Subclasses:
HTTP2ServerConnectionFactory
,RawHTTP2ServerConnectionFactory
@ManagedObject public abstract class AbstractHTTP2ServerConnectionFactory extends AbstractConnectionFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer
-
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
ConnectionFactory.Detecting, ConnectionFactory.Upgrading
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractHTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration)
protected
AbstractHTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration, java.lang.String... protocols)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description FlowControlStrategy.Factory
getFlowControlStrategyFactory()
HttpConfiguration
getHttpConfiguration()
int
getInitialSessionRecvWindow()
int
getInitialStreamRecvWindow()
int
getMaxConcurrentStreams()
int
getMaxDynamicTableSize()
int
getMaxFrameLength()
int
getMaxHeaderBlockFragment()
int
getMaxSettingsKeys()
RateControl
getRateControl()
Deprecated.usegetRateControlFactory()
insteadRateControl.Factory
getRateControlFactory()
int
getReservedThreads()
Deprecated.feature removed, no replacementlong
getStreamIdleTimeout()
org.eclipse.jetty.io.Connection
newConnection(Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
protected ServerParser
newServerParser(Connector connector, ServerParser.Listener listener, RateControl rateControl)
protected abstract ServerSessionListener
newSessionListener(Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
protected java.util.Map<java.lang.Integer,java.lang.Integer>
newSettings()
void
setFlowControlStrategyFactory(FlowControlStrategy.Factory flowControlStrategyFactory)
void
setInitialSessionRecvWindow(int initialSessionRecvWindow)
void
setInitialStreamRecvWindow(int initialStreamRecvWindow)
void
setMaxConcurrentStreams(int maxConcurrentStreams)
void
setMaxDynamicTableSize(int maxDynamicTableSize)
void
setMaxFrameLength(int maxFrameLength)
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
-
-
-
-
Constructor Detail
-
AbstractHTTP2ServerConnectionFactory
public AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration)
-
AbstractHTTP2ServerConnectionFactory
protected AbstractHTTP2ServerConnectionFactory(@Name("config") HttpConfiguration httpConfiguration, @Name("protocols") java.lang.String... protocols)
-
-
Method Detail
-
getMaxDynamicTableSize
@ManagedAttribute("The HPACK dynamic table maximum size") public int getMaxDynamicTableSize()
-
setMaxDynamicTableSize
public void setMaxDynamicTableSize(int maxDynamicTableSize)
-
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
public FlowControlStrategy.Factory getFlowControlStrategyFactory()
-
setFlowControlStrategyFactory
public void setFlowControlStrategyFactory(FlowControlStrategy.Factory flowControlStrategyFactory)
-
getStreamIdleTimeout
@ManagedAttribute("The stream idle timeout in milliseconds") public long getStreamIdleTimeout()
-
setStreamIdleTimeout
public void setStreamIdleTimeout(long streamIdleTimeout)
-
getMaxFrameLength
@ManagedAttribute("The max frame length in bytes") public int getMaxFrameLength()
-
setMaxFrameLength
public void setMaxFrameLength(int maxFrameLength)
-
getMaxSettingsKeys
@ManagedAttribute("The max number of keys in all SETTINGS frames") public int getMaxSettingsKeys()
-
setMaxSettingsKeys
public void setMaxSettingsKeys(int maxSettingsKeys)
-
getRateControl
@Deprecated public RateControl getRateControl()
Deprecated.usegetRateControlFactory()
instead- Returns:
- null
-
setRateControl
@Deprecated public void setRateControl(RateControl rateControl)
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:
java.lang.UnsupportedOperationException
- when invoked, unless precisely a WindowRateControl object
-
getRateControlFactory
public RateControl.Factory getRateControlFactory()
- Returns:
- the factory that creates RateControl objects
-
setRateControlFactory
public void setRateControlFactory(RateControl.Factory rateControlFactory)
Sets the factory that creates a per-connection RateControl object.
- Parameters:
rateControlFactory
- the factory that creates RateControl objects
-
getReservedThreads
@Deprecated public int getReservedThreads()
Deprecated.feature removed, no replacement- Returns:
- -1
-
setReservedThreads
@Deprecated public void setReservedThreads(int threads)
Deprecated.feature removed, no replacement- Parameters:
threads
- ignored- Throws:
java.lang.UnsupportedOperationException
- when invoked
-
getHttpConfiguration
public HttpConfiguration getHttpConfiguration()
-
newSettings
protected java.util.Map<java.lang.Integer,java.lang.Integer> newSettings()
-
newConnection
public org.eclipse.jetty.io.Connection newConnection(Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
-
newSessionListener
protected abstract ServerSessionListener newSessionListener(Connector connector, org.eclipse.jetty.io.EndPoint endPoint)
-
newServerParser
protected ServerParser newServerParser(Connector connector, ServerParser.Listener listener, RateControl rateControl)
-
-