Package org.eclipse.jetty.io
Interface Connection.UpgradeFrom
- All Known Implementing Classes:
HttpConnection,HttpConnectionOverHTTP
- Enclosing interface:
Connection
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Connection implementations implement this interface when they
can upgrade from the protocol they speak (for example HTTP/1.1)
to a different protocol (e.g. HTTP/2).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Invoked during anupgradeto produce a buffer containing bytes that have not been consumed by this connection, and that must be consumed by the upgrade-to connection.
-
Method Details
-
onUpgradeFrom
ByteBuffer onUpgradeFrom()Deprecated.Invoked during an
upgradeto produce a buffer containing bytes that have not been consumed by this connection, and that must be consumed by the upgrade-to connection.- Returns:
- a buffer of unconsumed bytes to pass to the upgrade-to connection. The buffer does not belong to any pool and should be discarded after having consumed its bytes. The returned buffer may be null if there are no unconsumed bytes.
-