public static interface ClientEngine.ClientUpgradeInfo
ClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIREDClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILEDClientEngine.ClientUpgradeStatus.SUCCESSgetUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.SUCCESS, client container can create
Connection and start processing read events from the underlying connection and report them to Tyrus
runtime.
When getUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.UPGRADE_REQUEST_FAILED, client container
HAS TO close all resources related to currently processed UpgradeResponse.
When getUpgradeStatus() returns ClientEngine.ClientUpgradeStatus.ANOTHER_UPGRADE_REQUEST_REQUIRED, client
container HAS TO close all resources related to currently processed UpgradeResponse, open new TCP
connection and send UpgradeRequest obtained from method ClientEngine.createUpgradeRequest(TimeoutHandler).| Modifier and Type | Method and Description |
|---|---|
Connection |
createConnection()
|
ClientEngine.ClientUpgradeStatus |
getUpgradeStatus()
|
ClientEngine.ClientUpgradeStatus getUpgradeStatus()
ClientEngine.ClientUpgradeStatus.Connection createConnection()
Connection instance or null, when getUpgradeStatus() does not return
ClientUpgradeStatus#.Copyright © 2012-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.