com.sun.grizzly.websockets
Class ServerNetworkHandler

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

public class ServerNetworkHandler
extends BaseNetworkHandler


Constructor Summary
ServerNetworkHandler(ProcessorTask task, AsyncProcessorTask async, Request req, Response resp)
           
ServerNetworkHandler(Request req, Response resp)
           
 
Method Summary
 byte get()
           
 byte[] get(int count)
           
 SelectedKeyAttachmentLogic getAttachment()
           
 HttpServletRequest getRequest()
           
 HttpServletResponse getResponse()
           
 WebSocket getWebSocket()
           
protected  void handshake(boolean sslSupport)
           
protected  void read()
           
protected  void readFrame()
           
 void send(DataFrame frame)
           
 void setWebSocket(BaseWebSocket webSocket)
           
 void setWebSocket(WebSocket webSocket)
           
 
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

ServerNetworkHandler

public ServerNetworkHandler(Request req,
                            Response resp)

ServerNetworkHandler

public ServerNetworkHandler(ProcessorTask task,
                            AsyncProcessorTask async,
                            Request req,
                            Response resp)
Method Detail

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.