public class ConnectionState extends Object
State can only go in one direction from HANDSHAKING to DISCONNECTED.
| Constructor and Description |
|---|
ConnectionState() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReadWebSocketFrames()
Tests to see if state allows for reading of WebSocket frames
|
boolean |
canWriteWebSocketFrames()
Test to see if state allows writing of WebSocket frames
|
boolean |
closing()
The Local Endpoint wants to close.
|
boolean |
disconnected()
Final Terminal state indicating the connection is disconnected
|
boolean |
opened()
Requests that the connection migrate to OPENED state
|
boolean |
opening()
Requests that the connection migrate to OPENING state
|
String |
toString() |
boolean |
wasOpened()
Tests to see if state got past the initial HANDSHAKING state
|
public boolean canWriteWebSocketFrames()
public boolean canReadWebSocketFrames()
public boolean wasOpened()
public boolean opening()
public boolean opened()
public boolean closing()
public boolean disconnected()
Copyright © 2010 - 2020 Adobe. All Rights Reserved