Package | Description |
---|---|
org.glassfish.tyrus.client | |
org.glassfish.tyrus.core | |
org.glassfish.tyrus.spi |
Modifier and Type | Method and Description |
---|---|
UpgradeRequest |
TyrusClientEngine.createUpgradeRequest(URI uri,
ClientEngine.TimeoutHandler timeoutHandler) |
Modifier and Type | Class and Description |
---|---|
class |
RequestContext
Implementation of all possible request interfaces.
|
Modifier and Type | Method and Description |
---|---|
UpgradeRequest |
Handshake.getRequest()
Client side only - get the
UpgradeRequest . |
UpgradeRequest |
Handshake.prepareRequest()
Client side only - Compose the
UpgradeRequest and store it for further use. |
Modifier and Type | Method and Description |
---|---|
static Handshake |
Handshake.createClientHandshake(UpgradeRequest webSocketRequest)
Client-side handshake.
|
Handshake |
ProtocolHandler.handshake(TyrusEndpointWrapper endpointWrapper,
UpgradeRequest request,
UpgradeResponse response,
ExtendedExtension.ExtensionContext extensionContext)
Server side.
|
Session |
TyrusEndpointWrapper.onConnect(TyrusWebSocket socket,
UpgradeRequest upgradeRequest,
String subProtocol,
List<Extension> extensions,
String connectionId)
Called by the provider when the web socket connection
is established.
|
void |
TyrusWebSocket.onConnect(UpgradeRequest upgradeRequest,
String subProtocol,
List<Extension> extensions,
String connectionId)
This callback will be invoked when the opening handshake between both
endpoints has been completed.
|
void |
TyrusEndpointWrapper.onHandShakeResponse(UpgradeRequest request,
UpgradeResponse response)
Invoked when server side handshake is ready to send response.
|
boolean |
TyrusEndpointWrapper.upgrade(UpgradeRequest request)
Server side check for protocol specific information to determine whether the request can be upgraded.
|
WebSocketEngine.UpgradeInfo |
TyrusWebSocketEngine.upgrade(UpgradeRequest request,
UpgradeResponse response) |
abstract boolean |
Version.validate(UpgradeRequest request) |
Modifier and Type | Method and Description |
---|---|
UpgradeRequest |
ClientEngine.createUpgradeRequest(URI uri,
ClientEngine.TimeoutHandler timeoutHandler)
Create upgrade request and register
ClientEngine.TimeoutHandler . |
Modifier and Type | Method and Description |
---|---|
WebSocketEngine.UpgradeInfo |
WebSocketEngine.upgrade(UpgradeRequest request,
UpgradeResponse response)
A transport calls this method to upgrade a HTTP request.
|
Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.