com.sun.grizzly.websockets
Class ServerNetworkHandler
java.lang.Object
com.sun.grizzly.websockets.ServerNetworkHandler
- All Implemented Interfaces:
- NetworkHandler
public class ServerNetworkHandler
- extends Object
- implements NetworkHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerNetworkHandler
public ServerNetworkHandler(Request req,
Response resp)
ServerNetworkHandler
public ServerNetworkHandler(ProcessorTask task,
AsyncProcessorTask async,
Request req,
Response resp)
getWebSocket
public WebSocket getWebSocket()
setWebSocket
public void setWebSocket(BaseWebSocket webSocket)
handshake
protected void handshake(boolean sslSupport)
throws IOException,
HandshakeException
- Throws:
IOException
HandshakeException
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
send
public void send(DataFrame frame)
throws IOException
- Specified by:
send in interface NetworkHandler
- Throws:
IOException
setWebSocket
public void setWebSocket(WebSocket webSocket)
- Specified by:
setWebSocket in interface NetworkHandler
getRequest
public HttpServletRequest getRequest()
throws IOException
- Throws:
IOException
getResponse
public HttpServletResponse getResponse()
throws IOException
- Throws:
IOException
getAttachment
public SelectedKeyAttachmentLogic getAttachment()
Copyright © 2011 Oracle Corpration. All Rights Reserved.