public class Draft_6455 extends Draft
Draft.CloseHandshakeType, Draft.HandshakeStatecontinuousFrameType, INITIAL_FAMESIZE, MAX_FAME_SIZE, role| Constructor and Description |
|---|
Draft_6455()
Constructor for the websocket protocol specified by RFC 6455 with default extensions
|
Draft_6455(IExtension inputExtension)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions
|
Draft_6455(List<IExtension> inputExtensions)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions
|
Draft_6455(List<IExtension> inputExtensions,
List<IProtocol> inputProtocols)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions and protocols
|
basicAccept, checkAlloc, continuousFrame, createHandshake, createHandshake, getRole, readLine, readStringLine, setParseMode, translateHandshake, translateHandshakeHttppublic Draft_6455()
public Draft_6455(IExtension inputExtension)
inputExtension - the extension which should be used for this draftpublic Draft_6455(List<IExtension> inputExtensions)
inputExtensions - the extensions which should be used for this draftpublic Draft_6455(List<IExtension> inputExtensions, List<IProtocol> inputProtocols)
inputExtensions - the extensions which should be used for this draftinputProtocols - the protocols which should be used for this draftpublic Draft.HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata) throws InvalidHandshakeException
acceptHandshakeAsServer in class DraftInvalidHandshakeExceptionpublic Draft.HandshakeState acceptHandshakeAsClient(ClientHandshake request, ServerHandshake response) throws InvalidHandshakeException
acceptHandshakeAsClient in class DraftInvalidHandshakeExceptionpublic IExtension getExtension()
public List<IExtension> getKnownExtensions()
public IProtocol getProtocol()
public List<IProtocol> getKnownProtocols()
public ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
postProcessHandshakeRequestAsClient in class Draftpublic HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request, ServerHandshakeBuilder response) throws InvalidHandshakeException
postProcessHandshakeResponseAsServer in class DraftInvalidHandshakeExceptionpublic Draft copyInstance()
DraftcopyInstance in class Draftpublic ByteBuffer createBinaryFrame(Framedata framedata)
createBinaryFrame in class Draftpublic Framedata translateSingleFrame(ByteBuffer buffer) throws IncompleteException, InvalidDataException
public List<Framedata> translateFrame(ByteBuffer buffer) throws InvalidDataException
translateFrame in class DraftInvalidDataExceptionpublic List<Framedata> createFrames(ByteBuffer binary, boolean mask)
createFrames in class Draftpublic List<Framedata> createFrames(String text, boolean mask)
createFrames in class Draftpublic void processFrame(WebSocketImpl webSocketImpl, Framedata frame) throws InvalidDataException
DraftprocessFrame in class DraftwebSocketImpl - the websocketimpl used for this draftframe - the frame which is supposed to be handledInvalidDataException - will be thrown on invalid datapublic Draft.CloseHandshakeType getCloseHandshakeType()
getCloseHandshakeType in class DraftCopyright © 2018. All rights reserved.