org.java_websocket.drafts
Class Draft_75
java.lang.Object
org.java_websocket.drafts.Draft
org.java_websocket.drafts.Draft_75
- Direct Known Subclasses:
- Draft_76
public class Draft_75
- extends Draft
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
readingState
protected boolean readingState
readyframes
protected List<Framedata> readyframes
currentFrame
protected ByteBuffer currentFrame
Draft_75
public Draft_75()
acceptHandshakeAsClient
public Draft.HandshakeState acceptHandshakeAsClient(ClientHandshake request,
ServerHandshake response)
- Specified by:
acceptHandshakeAsClient
in class Draft
acceptHandshakeAsServer
public Draft.HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata)
- Specified by:
acceptHandshakeAsServer
in class Draft
createBinaryFrame
public ByteBuffer createBinaryFrame(Framedata framedata)
- Specified by:
createBinaryFrame
in class Draft
createFrames
public List<Framedata> createFrames(ByteBuffer binary,
boolean mask)
- Specified by:
createFrames
in class Draft
createFrames
public List<Framedata> createFrames(String text,
boolean mask)
- Specified by:
createFrames
in class Draft
postProcessHandshakeRequestAsClient
public ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
throws InvalidHandshakeException
- Specified by:
postProcessHandshakeRequestAsClient
in class Draft
- Throws:
InvalidHandshakeException
postProcessHandshakeResponseAsServer
public HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request,
ServerHandshakeBuilder response)
throws InvalidHandshakeException
- Specified by:
postProcessHandshakeResponseAsServer
in class Draft
- Throws:
InvalidHandshakeException
translateRegularFrame
protected List<Framedata> translateRegularFrame(ByteBuffer buffer)
throws InvalidDataException
- Throws:
InvalidDataException
translateFrame
public List<Framedata> translateFrame(ByteBuffer buffer)
throws InvalidDataException
- Specified by:
translateFrame
in class Draft
- Throws:
InvalidDataException
reset
public void reset()
- Specified by:
reset
in class Draft
getCloseHandshakeType
public Draft.CloseHandshakeType getCloseHandshakeType()
- Specified by:
getCloseHandshakeType
in class Draft
createBuffer
public ByteBuffer createBuffer()
increaseBuffer
public ByteBuffer increaseBuffer(ByteBuffer full)
copyInstance
public Draft copyInstance()
- Description copied from class:
Draft
- Drafts must only be by one websocket at all. To prevent drafts to be used more than once the Websocket implementation should call this method in order to create a new usable version of a given draft instance.
The copy can be safely used in conjunction with a new websocket connection.
- Specified by:
copyInstance
in class Draft
Copyright © 2013 Pusher. All Rights Reserved.