com.sun.grizzly.websockets
Class ClientNetworkHandler

java.lang.Object
  extended by com.sun.grizzly.websockets.BaseNetworkHandler
      extended by com.sun.grizzly.websockets.ClientNetworkHandler
All Implemented Interfaces:
NetworkHandler

public class ClientNetworkHandler
extends BaseNetworkHandler


Constructor Summary
ClientNetworkHandler(ClientWebSocket webSocket)
           
 
Method Summary
protected  void connect()
           
 byte[] generateMask()
           
 byte get()
           
 byte[] get(int count)
           
 SSLSocketFactory getSSLSocketFactory()
           
 ClientWebSocket getWebSocket()
           
protected  void handshake()
           
protected  void readFrame()
           
 void send(DataFrame frame)
           
 void setWebSocket(WebSocket webSocket)
           
 void shutdown()
           
protected  void write(byte[] bytes)
           
 
Methods inherited from class com.sun.grizzly.websockets.BaseNetworkHandler
unframe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientNetworkHandler

public ClientNetworkHandler(ClientWebSocket webSocket)
Method Detail

connect

protected void connect()
                throws IOException
Throws:
IOException

send

public void send(DataFrame frame)

generateMask

public byte[] generateMask()

handshake

protected void handshake()
                  throws IOException
Throws:
IOException

write

protected void write(byte[] bytes)

shutdown

public void shutdown()
              throws IOException
Throws:
IOException

getWebSocket

public ClientWebSocket getWebSocket()

setWebSocket

public void setWebSocket(WebSocket webSocket)

readFrame

protected void readFrame()
                  throws IOException
Throws:
IOException

get

public byte get()
Specified by:
get in interface NetworkHandler
Specified by:
get in class BaseNetworkHandler

get

public byte[] get(int count)
Specified by:
get in interface NetworkHandler
Specified by:
get in class BaseNetworkHandler

getSSLSocketFactory

public SSLSocketFactory getSSLSocketFactory()
                                     throws IOException
Throws:
IOException


Copyright © 2012 Oracle Corporation. All Rights Reserved.