org.java_websocket.drafts
Class Draft_10
java.lang.Object
org.java_websocket.drafts.Draft
org.java_websocket.drafts.Draft_10
- Direct Known Subclasses:
- Draft_17
public class Draft_10
- extends Draft
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(ClientHandshake request,
ServerHandshake response)
throws InvalidHandshakeException
- Specified by:
acceptHandshakeAsClient
in class Draft
- Throws:
InvalidHandshakeException
acceptHandshakeAsServer
public Draft.HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata)
throws InvalidHandshakeException
- Specified by:
acceptHandshakeAsServer
in class Draft
- Throws:
InvalidHandshakeException
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)
- Specified by:
postProcessHandshakeRequestAsClient
in class Draft
postProcessHandshakeResponseAsServer
public HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request,
ServerHandshakeBuilder response)
throws InvalidHandshakeException
- Specified by:
postProcessHandshakeResponseAsServer
in class Draft
- Throws:
InvalidHandshakeException
translateFrame
public List<Framedata> translateFrame(ByteBuffer buffer)
throws LimitExedeedException,
InvalidDataException
- Specified by:
translateFrame
in class Draft
- Throws:
LimitExedeedException
InvalidDataException
translateSingleFrame
public Framedata translateSingleFrame(ByteBuffer buffer)
throws org.java_websocket.drafts.Draft_10.IncompleteException,
InvalidDataException
- Throws:
org.java_websocket.drafts.Draft_10.IncompleteException
InvalidDataException
reset
public void reset()
- Specified by:
reset
in class Draft
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
getCloseHandshakeType
public Draft.CloseHandshakeType getCloseHandshakeType()
- Specified by:
getCloseHandshakeType
in class Draft
Copyright © 2013 Pusher. All Rights Reserved.