public class Draft_6455 extends Draft
Draft.CloseHandshakeType, Draft.HandshakeState
continuousFrameType, 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, translateHandshakeHttp
public 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 Draft
InvalidHandshakeException
public Draft.HandshakeState acceptHandshakeAsClient(ClientHandshake request, ServerHandshake response) throws InvalidHandshakeException
acceptHandshakeAsClient
in class Draft
InvalidHandshakeException
public IExtension getExtension()
public List<IExtension> getKnownExtensions()
public IProtocol getProtocol()
public List<IProtocol> getKnownProtocols()
public ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request)
postProcessHandshakeRequestAsClient
in class Draft
public HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request, ServerHandshakeBuilder response) throws InvalidHandshakeException
postProcessHandshakeResponseAsServer
in class Draft
InvalidHandshakeException
public Draft copyInstance()
Draft
copyInstance
in class Draft
public ByteBuffer createBinaryFrame(Framedata framedata)
createBinaryFrame
in class Draft
public Framedata translateSingleFrame(ByteBuffer buffer) throws IncompleteException, InvalidDataException
public List<Framedata> translateFrame(ByteBuffer buffer) throws InvalidDataException
translateFrame
in class Draft
InvalidDataException
public List<Framedata> createFrames(ByteBuffer binary, boolean mask)
createFrames
in class Draft
public List<Framedata> createFrames(String text, boolean mask)
createFrames
in class Draft
public void processFrame(WebSocketImpl webSocketImpl, Framedata frame) throws InvalidDataException
Draft
processFrame
in class Draft
webSocketImpl
- 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 Draft
Copyright © 2017. All rights reserved.