public class CloseEvent extends WebSocketEvent<CloseEvent.Handler>
| Modifier and Type | Class and Description |
|---|---|
static interface |
CloseEvent.Handler |
| Modifier and Type | Field and Description |
|---|---|
static int |
CLOSE_ABNORMAL |
static int |
CLOSE_EXTENSION_UNAVAILABLE |
static int |
CLOSE_GOING_AWAY |
static int |
CLOSE_INCONSISTENT_DATA |
static int |
CLOSE_NO_STATUS |
static int |
CLOSE_NORMAL |
static int |
CLOSE_PROTOCOL_ERROR |
static int |
CLOSE_TOO_LARGE |
static int |
CLOSE_UNEXPECTED_CONDITION |
static int |
CLOSE_UNSUPPORTED |
static int |
CLOSE_VIOLATES_POLICY |
| Constructor and Description |
|---|
CloseEvent(WebSocket webSocket,
boolean wasClean,
int code,
java.lang.String reason) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(CloseEvent.Handler handler) |
<any> |
getAssociatedType() |
int |
getCode() |
java.lang.String |
getReason() |
static <any> |
getType() |
boolean |
wasClean() |
getWebSocketpublic static final int CLOSE_NORMAL
public static final int CLOSE_GOING_AWAY
public static final int CLOSE_PROTOCOL_ERROR
public static final int CLOSE_UNSUPPORTED
public static final int CLOSE_NO_STATUS
public static final int CLOSE_ABNORMAL
public static final int CLOSE_INCONSISTENT_DATA
public static final int CLOSE_VIOLATES_POLICY
public static final int CLOSE_TOO_LARGE
public static final int CLOSE_EXTENSION_UNAVAILABLE
public static final int CLOSE_UNEXPECTED_CONDITION
public CloseEvent(@Nonnull
WebSocket webSocket,
boolean wasClean,
int code,
@Nullable
java.lang.String reason)
public static <any> getType()
public boolean wasClean()
public int getCode()
@Nullable public java.lang.String getReason()
public <any> getAssociatedType()
protected void dispatch(@Nonnull
CloseEvent.Handler handler)