| Modifier and Type | Field and Description |
|---|---|
| private static final PreEncodedHttpField | |
| private final CoreClientUpgradeRequest | |
| private static final PreEncodedHttpField | |
| private static final PreEncodedHttpField | |
| private static final PreEncodedHttpField | |
| private static final PreEncodedHttpField |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public void | prepare(Request
the request to prepare request)Implements org. Prepares the request for the upgrade, for example by setting the HTTP method or by setting HTTP headers required for the upgrade. |
| public void | upgrade(Response
the response with the information about the upgrade response, EndPoint the EndPoint to upgrade endPoint, Callback a callback to notify of the success or failure of the upgrade callback)Implements org. Upgrades the given |
| CACHE_CONTROL_NO_CACHE_FIELD | back to summary |
|---|---|
| private static final PreEncodedHttpField CACHE_CONTROL_NO_CACHE_FIELD | |
| clientUpgradeRequest | back to summary |
|---|---|
| private final CoreClientUpgradeRequest clientUpgradeRequest | |
| PRAGMA_NO_CACHE_FIELD | back to summary |
|---|---|
| private static final PreEncodedHttpField PRAGMA_NO_CACHE_FIELD | |
| WS_CONNECTION_FIELD | back to summary |
|---|---|
| private static final PreEncodedHttpField WS_CONNECTION_FIELD | |
| WS_UPGRADE_FIELD | back to summary |
|---|---|
| private static final PreEncodedHttpField WS_UPGRADE_FIELD | |
| WS_VERSION_FIELD | back to summary |
|---|---|
| private static final PreEncodedHttpField WS_VERSION_FIELD | |
| HttpUpgraderOverHTTP | back to summary |
|---|---|
| public HttpUpgraderOverHTTP(CoreClientUpgradeRequest clientUpgradeRequest) | |
| generateRandomKey | back to summary |
|---|---|
| private String generateRandomKey() | |
| prepare | back to summary |
|---|---|
| public void prepare(Request request) Implements org. Doc from org. Prepares the request for the upgrade, for example by setting the HTTP method or by setting HTTP headers required for the upgrade. | |
| upgrade | back to summary |
|---|---|
| public void upgrade(Response response, EndPoint endPoint, Callback callback) Implements org. Doc from org. Upgrades the given The success or failure of the upgrade should be communicated via the given An exception thrown by this method is equivalent to failing the callback. | |