Class HttpUpgraderOverHTTP2
java.lang.Object
org.eclipse.jetty.websocket.core.client.internal.HttpUpgraderOverHTTP2
- All Implemented Interfaces:
HttpUpgrader
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.HttpUpgrader
HttpUpgrader.Factory
-
Field Summary
Fields inherited from interface org.eclipse.jetty.client.HttpUpgrader
PROTOCOL_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prepares the request for the upgrade, for example by setting the HTTP method or by setting HTTP headers required for the upgrade.void
Upgrades the givenendPoint
to a different protocol.
-
Constructor Details
-
HttpUpgraderOverHTTP2
-
-
Method Details
-
prepare
Description copied from interface:HttpUpgrader
Prepares the request for the upgrade, for example by setting the HTTP method or by setting HTTP headers required for the upgrade.
- Specified by:
prepare
in interfaceHttpUpgrader
- Parameters:
request
- the request to prepare
-
upgrade
Description copied from interface:HttpUpgrader
Upgrades the given
endPoint
to a different protocol.The success or failure of the upgrade should be communicated via the given
callback
.An exception thrown by this method is equivalent to failing the callback.
- Specified by:
upgrade
in interfaceHttpUpgrader
- Parameters:
response
- the response with the information about the upgradeendPoint
- the EndPoint to upgradecallback
- a callback to notify of the success or failure of the upgrade
-