com.sun.grizzly.websockets
Class ClientNetworkHandler
java.lang.Object
com.sun.grizzly.websockets.ClientNetworkHandler
- All Implemented Interfaces:
- NetworkHandler
public class ClientNetworkHandler
- extends Object
- implements NetworkHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientNetworkHandler
public ClientNetworkHandler(ClientWebSocket webSocket)
connect
protected void connect()
throws IOException
- Throws:
IOException
send
public void send(DataFrame frame)
throws IOException
- Specified by:
send in interface NetworkHandler
- Throws:
IOException
handshake
protected void handshake()
throws IOException
- Throws:
IOException
write
protected void write(byte[] bytes)
throws IOException
- Throws:
IOException
shutdown
public void shutdown()
throws IOException
- Throws:
IOException
getWebSocket
public ClientWebSocket getWebSocket()
setWebSocket
public void setWebSocket(WebSocket webSocket)
- Specified by:
setWebSocket in interface NetworkHandler
readFrame
protected void readFrame()
throws IOException
- Throws:
IOException
get
public byte get()
throws IOException
- Specified by:
get in interface NetworkHandler
- Throws:
IOException
peek
public boolean peek(byte... bytes)
throws IOException
- Specified by:
peek in interface NetworkHandler
- Throws:
IOException
getSSLSocketFactory
public SSLSocketFactory getSSLSocketFactory()
throws IOException
- Throws:
IOException
Copyright © 2011 Oracle Corpration. All Rights Reserved.