This web socket event will be fired when a new <f:websocket> has been
@Opened or @Closed. An application scoped CDI bean can
@Observes them.
For detailed usage instructions, see @Push javadoc.
Push, Opened, Closed
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | WebsocketEvent.
Indicates that a |
| public static @interface | WebsocketEvent.
Indicates that a |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final CloseReason. | |
| private static final long | |
| private final Serializable |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public CloseReason. | |
| public < The generic type of the user identifier. S extends Serializable> S | |
| public int | |
| public String |
| channel | back to summary |
|---|---|
| private final String channel | |
| code | back to summary |
|---|---|
| private final CloseReason. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| user | back to summary |
|---|---|
| private final Serializable user | |
| WebsocketEvent | back to summary |
|---|---|
| public WebsocketEvent(String channel, Serializable user, CloseReason. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getChannel | back to summary |
|---|---|
| public String getChannel() Returns the
| |
| getCloseCode | back to summary |
|---|---|
| public CloseReason. Returns the close code. If this returns
| |
| getUser | back to summary |
|---|---|
| public <S extends Serializable> S getUser() Returns the
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| 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- | |
Indicates that a <f:websocket> has closed.
For detailed usage instructions, see @Push javadoc.
Push
| Modifier and Type | Class and Description |
|---|---|
| public static class | WebsocketEvent.
Supports inline instantiation of the |
Supports inline instantiation of the Closed qualifier.
| Modifier and Type | Field and Description |
|---|---|
| public static final WebsocketEvent. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final WebsocketEvent. Instance of the | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| Literal | back to summary |
|---|---|
| public Literal() | |
Indicates that a <f:websocket> has opened.
For detailed usage instructions, see @Push javadoc.
Push
| Modifier and Type | Class and Description |
|---|---|
| public static class | WebsocketEvent.
Supports inline instantiation of the |
Supports inline instantiation of the Opened qualifier.
| Modifier and Type | Field and Description |
|---|---|
| public static final WebsocketEvent. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| INSTANCE | back to summary |
|---|---|
| public static final WebsocketEvent. Instance of the | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jakarta. | |
| Literal | back to summary |
|---|---|
| public Literal() | |