com.sun.grizzly.websockets
Class ServerNetworkHandler
java.lang.Object
com.sun.grizzly.websockets.BaseNetworkHandler
com.sun.grizzly.websockets.ServerNetworkHandler
- All Implemented Interfaces:
- NetworkHandler
public class ServerNetworkHandler
- extends BaseNetworkHandler
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 HandshakeException
- Throws:
HandshakeException
readFrame
protected void readFrame()
read
protected void read()
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
send
public void send(DataFrame frame)
setWebSocket
public void setWebSocket(WebSocket webSocket)
getRequest
public HttpServletRequest getRequest()
throws IOException
- Throws:
IOException
getResponse
public HttpServletResponse getResponse()
throws IOException
- Throws:
IOException
getAttachment
public SelectedKeyAttachmentLogic getAttachment()
Copyright © 2012 Oracle Corporation. All Rights Reserved.