| Modifier and Type | Field and Description |
|---|---|
| private ExtendedExtension. | |
| private List | |
| private UpgradeRequest | |
| private RequestContext | |
| private static final int | |
| private SecKey | |
| private List | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public static Handshake | Returns: handshake instance.request representation to be modified for use as WebSocket handshake request. webSocketRequest)Client-side handshake. |
| pack-priv static Handshake | Returns: created handshake.received handshake request. request, ExtendedExtension.extension context. extensionContextServer-side handshake. |
| public RequestContext | Returns: UpgradeRequest created on this HandShake.Client side only - get the |
| public UpgradeRequest | Returns: composedUpgradeRequest.Client side only - compose the |
| pack-priv List | |
| public void | setExtensions(List<Extension>
list of supported extensions. extensions)Client side only - set the list of supported extensions. |
| public void | setSubProtocols(List<String>
list of supported subprotocol. subProtocols)Client side only - set the list of supported subprotocols. |
| public static void | updateHostAndOrigin(final UpgradeRequest
upgrade request to be updated. upgradeRequest)Client side only - Generate host and origin header and put them to the upgrade request headers. |
| private static void | |
| public void | validateServerResponse(UpgradeResponse
response to be validated. response)Client side only - validate server response. |
| extensionContext | back to summary |
|---|---|
| private ExtendedExtension. | |
| extensions | back to summary |
|---|---|
| private List<Extension> extensions | |
| incomingRequest | back to summary |
|---|---|
| private UpgradeRequest incomingRequest | |
| request | back to summary |
|---|---|
| private RequestContext request | |
| RESPONSE_CODE_VALUE | back to summary |
|---|---|
| private static final int RESPONSE_CODE_VALUE | |
| secKey | back to summary |
|---|---|
| private SecKey secKey | |
| subProtocols | back to summary |
|---|---|
| private List<String> subProtocols | |
| VERSION | back to summary |
|---|---|
| private static final String VERSION | |
| Handshake | back to summary |
|---|---|
| private Handshake() | |
| checkForHeader | back to summary |
|---|---|
| private static void checkForHeader(String currentValue, String header, String validValue) throws HandshakeException | |
| createClientHandshake | back to summary |
|---|---|
| public static Handshake createClientHandshake(RequestContext webSocketRequest) Client-side handshake.
| |
| createServerHandshake | back to summary |
|---|---|
| pack-priv static Handshake createServerHandshake(UpgradeRequest request, ExtendedExtension. Server-side handshake.
| |
| getRequest | back to summary |
|---|---|
| public RequestContext getRequest() Client side only - get the
| |
| prepareRequest | back to summary |
|---|---|
| public UpgradeRequest prepareRequest() Client side only - compose the
| |
| respond | back to summary |
|---|---|
| pack-priv List | |
| setExtensions | back to summary |
|---|---|
| public void setExtensions(List<Extension> extensions) Client side only - set the list of supported extensions. | |
| setSubProtocols | back to summary |
|---|---|
| public void setSubProtocols(List<String> subProtocols) Client side only - set the list of supported subprotocols. | |
| updateHostAndOrigin | back to summary |
|---|---|
| public static void updateHostAndOrigin(final UpgradeRequest upgradeRequest) Client side only - Generate host and origin header and put them to the upgrade request headers.
| |
| validate | back to summary |
|---|---|
| private static void validate(String header, String validValue, String value) throws HandshakeException | |
| validateServerResponse | back to summary |
|---|---|
| public void validateServerResponse(UpgradeResponse response) throws HandshakeException Client side only - validate server response.
| |