com.sun.grizzly.websockets
Class ClientWebSocket

java.lang.Object
  extended by com.sun.grizzly.websockets.BaseWebSocket
      extended by com.sun.grizzly.websockets.ClientWebSocket
All Implemented Interfaces:
WebSocket

public class ClientWebSocket
extends BaseWebSocket


Field Summary
 
Fields inherited from interface com.sun.grizzly.websockets.WebSocket
END_POINT_GOING_DOWN, INVALID_DATA, MESSAGE_TOO_LARGE, NORMAL_CLOSURE, PROTOCOL_ERROR
 
Constructor Summary
ClientWebSocket(String url, long timeout, WebSocketListener... listeners)
           
ClientWebSocket(String url, WebSocketListener... listeners)
           
 
Method Summary
protected  ClientNetworkHandler createNetworkHandler()
           
 void execute(Runnable runnable)
           
 URL getAddress()
           
 
Methods inherited from class com.sun.grizzly.websockets.BaseWebSocket
add, close, close, close, getListeners, getNetworkHandler, isConnected, onClose, onConnect, onFragment, onMessage, onMessage, onPing, onPong, remove, send, send, setNetworkHandler, stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientWebSocket

public ClientWebSocket(String url,
                       WebSocketListener... listeners)
                throws IOException
Throws:
IOException

ClientWebSocket

public ClientWebSocket(String url,
                       long timeout,
                       WebSocketListener... listeners)
                throws IOException
Throws:
IOException
Method Detail

getAddress

public URL getAddress()

execute

public void execute(Runnable runnable)

createNetworkHandler

protected ClientNetworkHandler createNetworkHandler()


Copyright © 2012 Oracle Corporation. All Rights Reserved.