| Modifier and Type | Field and Description |
|---|---|
| protected Opcode | |
| protected Role | role
In some cases the handshake will be parsed different depending on whether |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract HandshakeState | |
| public abstract HandshakeState | |
| protected boolean | |
| public int | |
| public List | |
| public abstract Draft | |
| public abstract ByteBuffer | |
| public abstract List | |
| public abstract List | |
| public List | createHandshake(Handshakedata handshakedata, Role ownrole)
Deprecated
use createHandshake without the role
|
| public List | |
| public List | createHandshake(Handshakedata handshakedata, Role ownrole, boolean withcontent)
Deprecated
use createHandshake without the role since it does not have any effect
|
| public List | |
| public abstract CloseHandshakeType | |
| public Role | |
| public abstract ClientHandshakeBuilder | |
| public abstract HandshakeBuilder | |
| public abstract void | processFrame(WebSocketImpl
the websocketimpl used for this draft webSocketImpl, Framedata the frame which is supposed to be handled frame)Handle the frame specific to the draft |
| public static ByteBuffer | |
| public static String | |
| pack-priv int | |
| public abstract void | |
| public void | |
| public String | |
| public abstract List | |
| public Handshakedata | |
| public static HandshakeBuilder | |
| private static HandshakeBuilder | Returns: a handshakethe token of the first line split as as an string array firstLineTokens, String the whole line line)Checking the handshake for the role as client |
| private static HandshakeBuilder | Returns: a handshakethe token of the first line split as as an string array firstLineTokens, String the whole line line)Checking the handshake for the role as server |
| continuousFrameType | back to summary |
|---|---|
| protected Opcode continuousFrameType | |
| role | back to summary |
|---|---|
| protected Role role In some cases the handshake will be parsed different depending on whether | |
| Draft | back to summary |
|---|---|
| public Draft() | |
| acceptHandshakeAsClient | back to summary |
|---|---|
| public abstract HandshakeState acceptHandshakeAsClient(ClientHandshake request, ServerHandshake response) throws InvalidHandshakeException | |
| acceptHandshakeAsServer | back to summary |
|---|---|
| public abstract HandshakeState acceptHandshakeAsServer(ClientHandshake handshakedata) throws InvalidHandshakeException | |
| basicAccept | back to summary |
|---|---|
| protected boolean basicAccept(Handshakedata handshakedata) | |
| checkAlloc | back to summary |
|---|---|
| public int checkAlloc(int bytecount) throws InvalidDataException | |
| continuousFrame | back to summary |
|---|---|
| public List | |
| copyInstance | back to summary |
|---|---|
| public abstract Draft copyInstance() Drafts must only be by one websocket at all. To prevent drafts to be used more than once the
Websocket implementation should call this method in order to create a new usable version of a
given draft instance.
| |
| createBinaryFrame | back to summary |
|---|---|
| public abstract ByteBuffer createBinaryFrame(Framedata framedata) | |
| createFrames | back to summary |
|---|---|
| public abstract List | |
| createFrames | back to summary |
|---|---|
| public abstract List | |
| createHandshake | back to summary |
|---|---|
| public List Deprecated use createHandshake without the role
| |
| createHandshake | back to summary |
|---|---|
| public List | |
| createHandshake | back to summary |
|---|---|
| public List Deprecated use createHandshake without the role since it does not have any effect
| |
| createHandshake | back to summary |
|---|---|
| public List | |
| getCloseHandshakeType | back to summary |
|---|---|
| public abstract CloseHandshakeType getCloseHandshakeType() | |
| getRole | back to summary |
|---|---|
| public Role getRole() | |
| postProcessHandshakeRequestAsClient | back to summary |
|---|---|
| public abstract ClientHandshakeBuilder postProcessHandshakeRequestAsClient(ClientHandshakeBuilder request) throws InvalidHandshakeException | |
| postProcessHandshakeResponseAsServer | back to summary |
|---|---|
| public abstract HandshakeBuilder postProcessHandshakeResponseAsServer(ClientHandshake request, ServerHandshakeBuilder response) throws InvalidHandshakeException | |
| processFrame | back to summary |
|---|---|
| public abstract void processFrame(WebSocketImpl webSocketImpl, Framedata frame) throws InvalidDataException Handle the frame specific to the draft
| |
| readLine | back to summary |
|---|---|
| public static ByteBuffer readLine(ByteBuffer buf) | |
| readStringLine | back to summary |
|---|---|
| public static String readStringLine(ByteBuffer buf) | |
| readVersion | back to summary |
|---|---|
| pack-priv int readVersion(Handshakedata handshakedata) | |
| reset | back to summary |
|---|---|
| public abstract void reset() | |
| setParseMode | back to summary |
|---|---|
| public void setParseMode(Role role) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| translateFrame | back to summary |
|---|---|
| public abstract List | |
| translateHandshake | back to summary |
|---|---|
| public Handshakedata translateHandshake(ByteBuffer buf) throws InvalidHandshakeException | |
| translateHandshakeHttp | back to summary |
|---|---|
| public static HandshakeBuilder translateHandshakeHttp(ByteBuffer buf, Role role) throws InvalidHandshakeException | |
| translateHandshakeHttpClient | back to summary |
|---|---|
| private static HandshakeBuilder translateHandshakeHttpClient(String[] firstLineTokens, String line) throws InvalidHandshakeException Checking the handshake for the role as client
| |
| translateHandshakeHttpServer | back to summary |
|---|---|
| private static HandshakeBuilder translateHandshakeHttpServer(String[] firstLineTokens, String line) throws InvalidHandshakeException Checking the handshake for the role as server
| |