org.eclipse.jetty.server.ConnectionFactory, org.eclipse.jetty.server.ConnectionFactory.Upgradingpublic class HTTP2CServerConnectionFactory extends HTTP2ServerConnectionFactory implements org.eclipse.jetty.server.ConnectionFactory.Upgrading
This extension of HTTP2ServerConnection Factory sets the protocol name to "h2c" as used by the clear text upgrade mechanism for HTTP2 and marks all TLS ciphers as unacceptable.
If used in combination with a HttpConnectionFactory as the
default protocol, this factory can support the non-standard direct
update mechanism, where a HTTP1 request of the form "PRI * HTTP/2.0"
is used to trigger a switch to a HTTP2 connection. This approach
allows a single port to accept either HTTP/1 or HTTP/2 direct
connections.
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListenerorg.eclipse.jetty.server.ConnectionFactory.Upgradingorg.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.ListenerHTTP2ServerConnectionFactory.HTTPServerSessionListener| Constructor | Description |
|---|---|
HTTP2CServerConnectionFactory(org.eclipse.jetty.server.HttpConfiguration httpConfiguration) |
|
HTTP2CServerConnectionFactory(org.eclipse.jetty.server.HttpConfiguration httpConfiguration,
java.lang.String... protocols) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
isAcceptable(java.lang.String protocol,
java.lang.String tlsProtocol,
java.lang.String tlsCipher) |
|
org.eclipse.jetty.io.Connection |
upgradeConnection(org.eclipse.jetty.server.Connector connector,
org.eclipse.jetty.io.EndPoint endPoint,
org.eclipse.jetty.http.MetaData.Request request,
org.eclipse.jetty.http.HttpFields response101) |
configure, getFactories, getInputBufferSize, getProtocol, getProtocols, setInputBufferSize, toStringgetFlowControlStrategyFactory, getHttpConfiguration, getInitialSessionRecvWindow, getInitialStreamRecvWindow, getMaxConcurrentStreams, getMaxDynamicTableSize, getMaxHeaderBlockFragment, getReservedThreads, getStreamIdleTimeout, newConnection, newServerParser, newSettings, setFlowControlStrategyFactory, setInitialSessionRecvWindow, setInitialStreamRecvWindow, setMaxConcurrentStreams, setMaxDynamicTableSize, setMaxHeaderBlockFragment, setReservedThreads, setStreamIdleTimeoutaddLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopgetProtocol, getProtocols, newConnectionaddBean, addBean, addBean, addEventListener, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBean, updateBeansnewSessionListenerpublic HTTP2CServerConnectionFactory(@Name("config")
org.eclipse.jetty.server.HttpConfiguration httpConfiguration)
public HTTP2CServerConnectionFactory(@Name("config")
org.eclipse.jetty.server.HttpConfiguration httpConfiguration,
@Name("protocols")
java.lang.String... protocols)
public boolean isAcceptable(java.lang.String protocol,
java.lang.String tlsProtocol,
java.lang.String tlsCipher)
isAcceptable in class HTTP2ServerConnectionFactorypublic org.eclipse.jetty.io.Connection upgradeConnection(org.eclipse.jetty.server.Connector connector,
org.eclipse.jetty.io.EndPoint endPoint,
org.eclipse.jetty.http.MetaData.Request request,
org.eclipse.jetty.http.HttpFields response101)
throws org.eclipse.jetty.http.BadMessageException
upgradeConnection in interface org.eclipse.jetty.server.ConnectionFactory.Upgradingorg.eclipse.jetty.http.BadMessageExceptionCopyright © 1995–2018 Webtide. All rights reserved.