| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public byte[] | Returns: The byte sequence as listed in the IANA registry for this protocol ornull if upgrade via
ALPN is not supported.
|
| public String | Returns: The name of the protocol as listed in the IANA registry if and only ifgetAlpnIdentifier()
returns the UTF-8 encoding of this name. If getAlpnIdentifier() returns some other byte
sequence, then this method returns the empty string. If upgrade via ALPN is not supported then
null is returned.
|
| public String | Returns: The name that clients will use to request an upgrade to this protocol via an HTTP/1.1 upgrade request ornull if upgrade via an HTTP/1.1 upgrade request is not supported.Is this for a connector that is configured to support TLS. Some protocols (e.g. HTTP/2) only
support HTTP upgrade over non-secure connections. isSSLEnabled)
|
| public InternalHttpUpgradeHandler | Returns: An instance of the HTTP upgrade handler for this protocolThe socket socketWrapper, Adapter The Adapter to use to configure the new upgrade handler adapter, Request A copy (may be incomplete) of the request that triggered the upgrade request)
|
| public Processor | Returns: A processor instance for processing a connection using this protocol.The socketWrapper for the connection that requires a processor socketWrapper, Adapter The Adapter instance that provides access to the standard Engine/Host/Context/Wrapper
processing chain adapter)
|
| public default void | setHttp11Protocol(AbstractHttp11Protocol<?>
The HTTP/1.1 protocol implementation that will initially handle any connections passed to this
UpgradeProtocol via the HTTP upgrade mechanism protocol)Configure the HTTP/1.1 protocol that this UpgradeProcotol is nested under. |
| accept | back to summary |
|---|---|
| public boolean accept(Request request) Allows the implementation to examine the request and accept or reject it based on what it finds.
| |
| getAlpnIdentifier | back to summary |
|---|---|
public byte[] getAlpnIdentifier()
| |
| getAlpnName | back to summary |
|---|---|
public String getAlpnName()
| |
| getHttpUpgradeName | back to summary |
|---|---|
public String getHttpUpgradeName(boolean isSSLEnabled)
| |
| getInternalUpgradeHandler | back to summary |
|---|---|
public InternalHttpUpgradeHandler getInternalUpgradeHandler(SocketWrapperBase<?> socketWrapper, Adapter adapter, Request request)
| |
| getProcessor | back to summary |
|---|---|
public Processor getProcessor(SocketWrapperBase<?> socketWrapper, Adapter adapter)
| |
| setHttp11Protocol | back to summary |
|---|---|
| public default void setHttp11Protocol(AbstractHttp11Protocol<?> protocol) Configure the HTTP/1.1 protocol that this UpgradeProcotol is nested under. Connections passed to this UpgradeProtocol via HTTP upgrade will have been initially handled by this HTTP/1.1 protocol implementation. The default implementation is a NO-OP.
| |