public class Draft_6455 extends Draft
continuousFrameType, 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,
int inputMaxFrameSize)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions and
protocols
|
Draft_6455(List<IExtension> inputExtensions,
List<IProtocol> inputProtocols)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions and
protocols
|
Draft_6455(List<IExtension> inputExtensions,
List<IProtocol> inputProtocols,
int inputMaxFrameSize)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions and
protocols
|
basicAccept, checkAlloc, continuousFrame, createHandshake, createHandshake, 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_6455(List<IExtension> inputExtensions, int inputMaxFrameSize)
inputExtensions - the extensions which should be used for this draftinputMaxFrameSize - the maximum allowed size of a frame (the real payload size, decoded
frames can be bigger)public Draft_6455(List<IExtension> inputExtensions, List<IProtocol> inputProtocols, int inputMaxFrameSize)
inputExtensions - the extensions which should be used for this draftinputProtocols - the protocols which should be used for this draftinputMaxFrameSize - the maximum allowed size of a frame (the real payload size, decoded
frames can be bigger)public HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata) throws InvalidHandshakeException
acceptHandshakeAsServer in class DraftInvalidHandshakeExceptionpublic HandshakeState acceptHandshakeAsClient(ClientHandshake request, ServerHandshake response) throws InvalidHandshakeException
acceptHandshakeAsClient in class DraftInvalidHandshakeExceptionpublic IExtension getExtension()
public List<IExtension> getKnownExtensions()
public IProtocol getProtocol()
public int getMaxFrameSize()
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 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 CloseHandshakeType getCloseHandshakeType()
getCloseHandshakeType in class DraftCopyright © 2021. All rights reserved.