net.tootallnate.websocket.drafts
Class Draft_75
java.lang.Object
net.tootallnate.websocket.Draft
net.tootallnate.websocket.drafts.Draft_75
- Direct Known Subclasses:
- Draft_76
public class Draft_75
- extends Draft
|
Field Summary |
static byte |
CR
The byte representing CR, or Carriage Return, or \r |
static byte |
END_OF_FRAME
The byte representing the end of a WebSocket text frame. |
static byte |
LF
The byte representing LF, or Line Feed, or \n |
static byte |
START_OF_FRAME
The byte representing the beginning of a WebSocket text frame. |
| 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 |
CR
public static final byte CR
- The byte representing CR, or Carriage Return, or \r
- See Also:
- Constant Field Values
LF
public static final byte LF
- The byte representing LF, or Line Feed, or \n
- See Also:
- Constant Field Values
START_OF_FRAME
public static final byte START_OF_FRAME
- The byte representing the beginning of a WebSocket text frame.
- See Also:
- Constant Field Values
END_OF_FRAME
public static final byte END_OF_FRAME
- The byte representing the end of a WebSocket text frame.
- See Also:
- Constant Field Values
Draft_75
public Draft_75()
acceptHandshakeAsClient
public Draft.HandshakeState acceptHandshakeAsClient(Handshakedata request,
Handshakedata response)
- Specified by:
acceptHandshakeAsClient in class Draft
acceptHandshakeAsServer
public Draft.HandshakeState acceptHandshakeAsServer(Handshakedata handshakedata)
- Specified by:
acceptHandshakeAsServer in class Draft
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)
throws InvalidHandshakeException
- Specified by:
postProcessHandshakeRequestAsClient in class Draft
- Throws:
InvalidHandshakeException
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 InvalidDataException
- Specified by:
translateFrame in class Draft
- Throws:
InvalidDataException
reset
public void reset()
- Specified by:
reset in class Draft