public final class WebsocketEvent extends ObjectSE implements SerializableSE
この Web ソケットイベントは、新しい <f:websocket> が @WebsocketEvent.Opened または @WebsocketEvent.Closed になったときに発生します。アプリケーションスコープの CDI Bean は、@Observes できます。
詳しい使用方法については、@Push javadoc を参照してください。
Push, WebsocketEvent.Opened, WebsocketEvent.Closed, 連載形式 | 修飾子と型 | クラスと説明 |
|---|---|
static interface | WebsocketEvent.Closed
|
static interface | WebsocketEvent.Opened
|
| コンストラクターと説明 |
|---|
WebsocketEvent(StringSE channel, SerializableSE user, CloseReason.CloseCode code) |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(ObjectSE other) |
StringSE | getChannel()<f:websocket channel> を返します。 |
CloseReason.CloseCode | getCloseCode() クローズコードを返します。 |
<S extends SerializableSE> | getUser()<f:websocket user> がある場合は、それを返します。 |
int | hashCode() |
StringSE | toString() |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic WebsocketEvent(StringSE channel, SerializableSE user, CloseReason.CloseCode code)
public StringSE getChannel()
<f:websocket channel> を返します。public <S extends SerializableSE> S getUser()
<f:websocket user> がある場合は、それを返します。S - ユーザー ID の総称型。ClassCastExceptionSE - S の型が間違っている場合。public CloseReason.CloseCode getCloseCode()
public int hashCode()
ObjectSE の hashCodeSE public StringSE toString()
ObjectSE の toStringSE Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.