com.sun.grizzly.websockets
Class ServerNetworkHandler

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

public class ServerNetworkHandler
extends Object
implements NetworkHandler


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