org.jboss.websockets.oio.internal.protocol.ietf07
Class Hybi07Socket
java.lang.Object
org.jboss.websockets.oio.internal.AbstractWebSocket
org.jboss.websockets.oio.internal.protocol.ietf07.Hybi07Socket
- All Implemented Interfaces:
- OioWebSocket
public class Hybi07Socket
- extends AbstractWebSocket
Implementation of the Hybi-07 Websocket Framing Protocol.
- Author:
- Mike Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hybi07Socket
public Hybi07Socket(InputStream inputStream,
OutputStream outputStream,
ClosingStrategy closingStrategy)
from
public static OioWebSocket from(HttpRequestBridge request,
HttpResponseBridge response,
ClosingStrategy closingStrategy)
throws IOException
- Throws:
IOException
_readBinaryFrame
public byte[] _readBinaryFrame()
throws IOException
- 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
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
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.