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(java.util.List<IExtension> inputExtensions)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions
|
Draft_6455(java.util.List<IExtension> inputExtensions,
java.util.List<IProtocol> inputProtocols)
Constructor for the websocket protocol specified by RFC 6455 with custom extensions and protocols
|
| Modifier and Type | Method and Description |
|---|---|
Draft.HandshakeState |
acceptHandshakeAsClient(ClientHandshake request,
ServerHandshake response) |
Draft.HandshakeState |
acceptHandshakeAsServer(ClientHandshake handshakedata) |
Draft |
copyInstance()
Drafts must only be by one websocket at all.
|
java.nio.ByteBuffer |
createBinaryFrame(Framedata framedata) |
java.util.List<Framedata> |
createFrames(java.nio.ByteBuffer binary,
boolean mask) |
java.util.List<Framedata> |
createFrames(java.lang.String text,
boolean mask) |
boolean |
equals(java.lang.Object o) |
Draft.CloseHandshakeType |
getCloseHandshakeType() |
IExtension |
getExtension()
Getter for the extension which is used by this draft
|
java.util.List<IExtension> |
getKnownExtensions()
Getter for all available extensions for this draft
|
java.util.List<IProtocol> |
getKnownProtocols()
Getter for all available protocols for this draft
|
IProtocol |
getProtocol()
Getter for the protocol which is used by this draft
|
int |
hashCode() |
ClientHandshakeBuilder |
postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request) |
HandshakeBuilder |
postProcessHandshakeResponseAsServer(ClientHandshake request,
ServerHandshakeBuilder response) |
void |
processFrame(WebSocketImpl webSocketImpl,
Framedata frame)
Handle the frame specific to the draft
|
void |
reset() |
java.lang.String |
toString() |
java.util.List<Framedata> |
translateFrame(java.nio.ByteBuffer buffer) |
Framedata |
translateSingleFrame(java.nio.ByteBuffer buffer) |
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(java.util.List<IExtension> inputExtensions)
inputExtensions - the extensions which should be used for this draftpublic Draft_6455(java.util.List<IExtension> inputExtensions, java.util.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 java.util.List<IExtension> getKnownExtensions()
public IProtocol getProtocol()
public java.util.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 java.nio.ByteBuffer createBinaryFrame(Framedata framedata)
createBinaryFrame in class Draftpublic Framedata translateSingleFrame(java.nio.ByteBuffer buffer) throws IncompleteException, InvalidDataException
public java.util.List<Framedata> translateFrame(java.nio.ByteBuffer buffer) throws InvalidDataException
translateFrame in class DraftInvalidDataExceptionpublic java.util.List<Framedata> createFrames(java.nio.ByteBuffer binary, boolean mask)
createFrames in class Draftpublic java.util.List<Framedata> createFrames(java.lang.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 Draftpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object