net.tootallnate.websocket.drafts
Class Draft_10
java.lang.Object
net.tootallnate.websocket.Draft
net.tootallnate.websocket.drafts.Draft_10
- Direct Known Subclasses:
- Draft_17
public class Draft_10
- extends Draft
| Fields inherited from class net.tootallnate.websocket.Draft |
role |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Draft_10
public Draft_10()
readVersion
public static int readVersion(Handshakedata handshakedata)
acceptHandshakeAsClient
public Draft.HandshakeState acceptHandshakeAsClient(Handshakedata request,
Handshakedata response)
throws InvalidHandshakeException
- Specified by:
acceptHandshakeAsClient in class Draft
- Throws:
InvalidHandshakeException
acceptHandshakeAsServer
public Draft.HandshakeState acceptHandshakeAsServer(Handshakedata handshakedata)
throws InvalidHandshakeException
- Specified by:
acceptHandshakeAsServer in class Draft
- Throws:
InvalidHandshakeException
createBinaryFrame
public java.nio.ByteBuffer createBinaryFrame(Framedata framedata)
- Specified by:
createBinaryFrame in class Draft
createFrames
public java.util.List<Framedata> createFrames(byte[] binary,
boolean mask)
- Specified by:
createFrames in class Draft
createFrames
public java.util.List<Framedata> createFrames(java.lang.String text,
boolean mask)
- Specified by:
createFrames in class Draft
postProcessHandshakeRequestAsClient
public HandshakeBuilder postProcessHandshakeRequestAsClient(HandshakeBuilder request)
- Specified by:
postProcessHandshakeRequestAsClient in class Draft
postProcessHandshakeResponseAsServer
public HandshakeBuilder postProcessHandshakeResponseAsServer(Handshakedata request,
HandshakeBuilder response)
throws InvalidHandshakeException
- Specified by:
postProcessHandshakeResponseAsServer in class Draft
- Throws:
InvalidHandshakeException
translateFrame
public java.util.List<Framedata> translateFrame(java.nio.ByteBuffer buffer)
throws LimitExedeedException,
InvalidDataException
- Specified by:
translateFrame in class Draft
- Throws:
LimitExedeedException
InvalidDataException
translateSingleFrame
public Framedata translateSingleFrame(java.nio.ByteBuffer buffer)
throws net.tootallnate.websocket.drafts.Draft_10.IncompleteException,
InvalidDataException
- Throws:
net.tootallnate.websocket.drafts.Draft_10.IncompleteException
InvalidDataException
reset
public void reset()
- Specified by:
reset in class Draft