org.java_websocket.drafts
Class Draft_17

java.lang.Object
  extended by org.java_websocket.drafts.Draft
      extended by org.java_websocket.drafts.Draft_10
          extended by org.java_websocket.drafts.Draft_17

public class Draft_17
extends Draft_10


Nested Class Summary
 
Nested classes/interfaces inherited from class org.java_websocket.drafts.Draft
Draft.CloseHandshakeType, Draft.HandshakeState
 
Field Summary
 
Fields inherited from class org.java_websocket.drafts.Draft
FLASH_POLICY_REQUEST, INITIAL_FAMESIZE, MAX_FAME_SIZE, role
 
Constructor Summary
Draft_17()
           
 
Method Summary
 Draft.HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata)
           
 Draft copyInstance()
          Drafts must only be by one websocket at all.
 ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
           
 
Methods inherited from class org.java_websocket.drafts.Draft_10
acceptHandshakeAsClient, createBinaryFrame, createFrames, createFrames, getCloseHandshakeType, postProcessHandshakeResponseAsServer, readVersion, reset, translateFrame, translateSingleFrame
 
Methods inherited from class org.java_websocket.drafts.Draft
basicAccept, checkAlloc, createHandshake, createHandshake, readLine, readStringLine, setParseMode, translateHandshake, translateHandshakeHttp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Draft_17

public Draft_17()
Method Detail

acceptHandshakeAsServer

public Draft.HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata)
                                             throws InvalidHandshakeException
Overrides:
acceptHandshakeAsServer in class Draft_10
Throws:
InvalidHandshakeException

postProcessHandshakeRequestAsClient

public ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
Overrides:
postProcessHandshakeRequestAsClient in class Draft_10

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.

Overrides:
copyInstance in class Draft_10


Copyright © 2013 Pusher. All Rights Reserved.