org.glassfish.tyrus.client
Class WebSocketClient

java.lang.Object
  extended by org.glassfish.tyrus.client.WebSocketClient

public class WebSocketClient
extends java.lang.Object

WebSocketClient implementation.

Author:
Stepan Kopriva (stepan.kopriva at oracle.com)

Constructor Summary
WebSocketClient()
           
 
Method Summary
static WebSocketClient createClient()
          Create new WebSocketClient instance.
 ClientSocket openSocket(java.lang.String url, long timeoutMs, java.lang.Object... endpoints)
          Open new WebSocket connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSocketClient

public WebSocketClient()
Method Detail

createClient

public static WebSocketClient createClient()
Create new WebSocketClient instance.

Returns:
new WebSocketClient instance.

openSocket

public ClientSocket openSocket(java.lang.String url,
                               long timeoutMs,
                               java.lang.Object... endpoints)
Open new WebSocket connection.

Parameters:
url - Address to which the connection connects.
timeoutMs - Connection timeout.
endpoints - Endpoints that will be registered with the socket.
Returns:
newly created ClientSocket.


Copyright © 2012. All Rights Reserved.