public interface ClientEngine
| Modifier and Type | Interface and Description | 
|---|---|
| static interface  | ClientEngine.ClientUpgradeInfoUpgrade process result. | 
| static class  | ClientEngine.ClientUpgradeStatusStatus of upgrade process. | 
| static interface  | ClientEngine.TimeoutHandlerIndicates to container that handshake timeout was reached. | 
| Modifier and Type | Method and Description | 
|---|---|
| UpgradeRequest | createUpgradeRequest(ClientEngine.TimeoutHandler timeoutHandler)Create upgrade request and register  ClientEngine.TimeoutHandler. | 
| void | processError(java.lang.Throwable t)Process error. | 
| ClientEngine.ClientUpgradeInfo | processResponse(UpgradeResponse upgradeResponse,
               Writer writer,
               Connection.CloseListener closeListener)Process handshake and return  ClientEngine.ClientUpgradeInfowith handshake status (ClientEngine.ClientUpgradeStatus). | 
UpgradeRequest createUpgradeRequest(ClientEngine.TimeoutHandler timeoutHandler)
ClientEngine.TimeoutHandler.timeoutHandler - handshake timeout handler. ClientEngine.TimeoutHandler.handleTimeout() is invoked if processResponse(UpgradeResponse, Writer, Connection.CloseListener) is not called within
                       handshake timeout.null, when the request cannot be created. When null is
 returned, client should free all resources tied to current connection.ClientEngine.ClientUpgradeInfo processResponse(UpgradeResponse upgradeResponse, Writer writer, Connection.CloseListener closeListener)
ClientEngine.ClientUpgradeInfo with handshake status (ClientEngine.ClientUpgradeStatus).upgradeResponse - response to be processed.writer - used for sending dataframes from client endpoint.closeListener - will be called when connection is closed, will be set as listener of returned Connection.processError(Throwable)void processError(java.lang.Throwable t)
 This method can be called any time when client encounters an error which cannot be handled in the container
 before ClientEngine.ClientUpgradeStatus.SUCCESS is returned from processResponse(UpgradeResponse, Writer,
 Connection.CloseListener).
t - encountered error.processResponse(UpgradeResponse, Writer, Connection.CloseListener)Copyright © 2012–2020 Oracle Corporation. All rights reserved.