public class Draft_6455 extends Draft
continuousFrameType, role| 构造器和说明 |
|---|
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, getCharset, getRole, readLine, readStringLine, setCharset, 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 HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata) throws InvalidHandshakeException
acceptHandshakeAsServer 在类中 DraftInvalidHandshakeExceptionpublic HandshakeState acceptHandshakeAsClient(ClientHandshake request, ServerHandshake response) throws InvalidHandshakeException
acceptHandshakeAsClient 在类中 DraftInvalidHandshakeExceptionpublic IExtension getExtension()
public List<IExtension> getKnownExtensions()
public IProtocol getProtocol()
public List<IProtocol> getKnownProtocols()
public ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
postProcessHandshakeRequestAsClient 在类中 Draftpublic HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request, ServerHandshakeBuilder response) throws InvalidHandshakeException
public Draft copyInstance()
DraftcopyInstance 在类中 Draftpublic ByteBuffer createBinaryFrame(Framedata framedata)
createBinaryFrame 在类中 Draftpublic Framedata translateSingleFrame(ByteBuffer buffer) throws IncompleteException, InvalidDataException
public List<Framedata> translateFrame(ByteBuffer buffer) throws InvalidDataException
translateFrame 在类中 DraftInvalidDataExceptionpublic List<Framedata> createFrames(ByteBuffer binary, boolean mask)
createFrames 在类中 Draftpublic List<Framedata> createFrames(String text, boolean mask)
createFrames 在类中 Draftpublic void processFrame(WebSocketImpl webSocketImpl, Framedata frame) throws InvalidDataException
DraftprocessFrame 在类中 DraftwebSocketImpl - the websocketimpl used for this draftframe - the frame which is supposed to be handledInvalidDataException - will be thrown on invalid datapublic CloseHandshakeType getCloseHandshakeType()
getCloseHandshakeType 在类中 DraftCopyright © 2025. All rights reserved.