Errai 3.0.1-SNAPSHOT

org.jboss.websockets.oio.internal.protocol.ietf00
Class Hybi00Socket

java.lang.Object
  extended by org.jboss.websockets.oio.internal.AbstractWebSocket
      extended by org.jboss.websockets.oio.internal.protocol.ietf00.Hybi00Socket
All Implemented Interfaces:
OioWebSocket

public class Hybi00Socket
extends AbstractWebSocket

The Hybi-00 Framing Protocol implementation.

Author:
Mike Brock
See Also:
Hybi00Handshake

Field Summary
 
Fields inherited from class org.jboss.websockets.oio.internal.AbstractWebSocket
closingStrategy, inputStream, outputStream, webSocketId
 
Method Summary
static OioWebSocket from(HttpRequestBridge request, HttpResponseBridge response, ClosingStrategy closingStrategy)
           
 Frame readFrame()
          Read a single frame from the socket.
 void writeFrame(Frame frame)
          Write a frame to the socket.
 void writeTextFrame(String text)
           
 
Methods inherited from class org.jboss.websockets.oio.internal.AbstractWebSocket
closeSocket, getSocketID
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public static OioWebSocket from(HttpRequestBridge request,
                                HttpResponseBridge response,
                                ClosingStrategy closingStrategy)
                         throws IOException
Throws:
IOException

writeTextFrame

public void writeTextFrame(String text)
                    throws IOException
Throws:
IOException

writeFrame

public void writeFrame(Frame frame)
                throws IOException
Description copied from interface: OioWebSocket
Write a frame to the socket.

Parameters:
frame - the @{link Frame} instance to write to the socket.
Throws:
IOException

readFrame

public Frame readFrame()
                throws IOException
Description copied from interface: OioWebSocket
Read a single frame from the socket.

Returns:
an instance of the received Frame
Throws:
IOException

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.