public class TyrusClientEngine extends java.lang.Object implements ClientEngine
ClientEngine implementation.| Modifier and Type | Class and Description | 
|---|---|
| static interface  | TyrusClientEngine.ClientHandshakeListenerCalled when response is received from the server. | 
ClientEngine.ClientUpgradeInfo, ClientEngine.ClientUpgradeStatus, ClientEngine.TimeoutHandler| Modifier and Type | Field and Description | 
|---|---|
| static int | DEFAULT_INCOMING_BUFFER_SIZEDefault incoming buffer size for client container. | 
| Modifier and Type | Method and Description | 
|---|---|
| UpgradeRequest | createUpgradeRequest(ClientEngine.TimeoutHandler timeoutHandler)Create upgrade request and register  ClientEngine.TimeoutHandler. | 
| ClientEngine.TimeoutHandler | getTimeoutHandler()Get  TimeoutHandlerassociated with currentClientEngineinstance. | 
| 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). | 
public static final int DEFAULT_INCOMING_BUFFER_SIZE
public UpgradeRequest createUpgradeRequest(ClientEngine.TimeoutHandler timeoutHandler)
ClientEngineClientEngine.TimeoutHandler.createUpgradeRequest in interface ClientEnginetimeoutHandler - handshake timeout handler. ClientEngine.TimeoutHandler.handleTimeout() is invoked if ClientEngine.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.public ClientEngine.ClientUpgradeInfo processResponse(UpgradeResponse upgradeResponse, Writer writer, Connection.CloseListener closeListener)
ClientEngineClientEngine.ClientUpgradeInfo with handshake status (ClientEngine.ClientUpgradeStatus).processResponse in interface ClientEngineupgradeResponse - 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.ClientEngine.processError(Throwable)public void processError(java.lang.Throwable t)
ClientEngine
 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 ClientEngine.processResponse(UpgradeResponse, Writer,
 Connection.CloseListener).
processError in interface ClientEnginet - encountered error.ClientEngine.processResponse(UpgradeResponse, Writer, Connection.CloseListener)public ClientEngine.TimeoutHandler getTimeoutHandler()
TimeoutHandler associated with current ClientEngine instance.null when not present.Copyright © 2012–2020 Oracle Corporation. All rights reserved.