public final class CloseStatus extends ObjectSE implements SerializableSE
RFC 6455、セクション 7.4.1「定義されたステータスコード」を参照してください。
| 修飾子と型 | フィールドと説明 |
|---|---|
static CloseStatus | BAD_DATA「1007 は、メッセージの型と一致しないメッセージ内のデータ(たとえば、テキストメッセージ内の非 UTF-8 [RFC3629] データ)を受信したため、エンドポイントが接続を終了していることを示します。」 |
static CloseStatus | GOING_AWAY「1001 は、サーバーがダウンしたり、ブラウザーがページから移動したりするなど、エンドポイントが「離れる」ことを示します。 |
static CloseStatus | NO_CLOSE_FRAME「1006 は予約済みの値であり、エンドポイントによって Close コントロールフレームのステータスコードとして設定してはなりません(MUST NOT)。 |
static CloseStatus | NO_STATUS_CODE「1005 は予約済みの値であり、エンドポイントによって Close コントロールフレームのステータスコードとして設定してはなりません(MUST NOT)。 |
static CloseStatus | NORMAL「1000 は通常の閉鎖を示します。つまり、接続が確立された目的が達成されたことを意味します。」 |
static CloseStatus | NOT_ACCEPTABLE「1003 は、エンドポイントが受信できない型のデータを受信したため、エンドポイントが接続を終了していることを示します(たとえば、テキストデータのみを理解するエンドポイントは、バイナリメッセージを受信した場合にこれを送信できます)。」 |
static CloseStatus | POLICY_VIOLATION「1008 は、ポリシーに違反するメッセージを受信したため、エンドポイントが接続を終了していることを示します。 |
static CloseStatus | PROTOCOL_ERROR「1002 は、プロトコルエラーが原因でエンドポイントが接続を終了していることを示します。」 |
static CloseStatus | REQUIRED_EXTENSION「1010 は、サーバーが 1 つ以上の内線をネゴシエートすることを期待していたが、サーバーが WebSocket ハンドシェイクのレスポンスメッセージで返さなかったため、エンドポイント(クライアント)が接続を終了していることを示します。 |
static CloseStatus | SERVER_ERROR「1011 は、サーバーがリクエストの実行を妨げる予期しない状況が発生したため、サーバーが接続を終了していることを示しています。」 |
static CloseStatus | SERVICE_OVERLOAD「1013 は、サービスがオーバーロードになっていることを示します。 |
static CloseStatus | SERVICE_RESTARTED「1012 は、サービスが再起動されることを示します。 |
static CloseStatus | SESSION_NOT_RELIABLE フレームワーク内で使用するステータスコードは、セッションが信頼できなくなったことを示します(例: |
static CloseStatus | TLS_HANDSHAKE_FAILURE「1015 は予約済みの値であり、エンドポイントによって Close コントロールフレームのステータスコードとして設定してはなりません(MUST NOT)。 |
static CloseStatus | TOO_BIG_TO_PROCESS「1009 は、処理するには大きすぎるメッセージを受信したため、エンドポイントが接続を終了していることを示します。」 |
| コンストラクターと説明 |
|---|
CloseStatus(int code) 新しい CloseStatus インスタンスを作成します。 |
CloseStatus(int code, StringSE reason) 新しい CloseStatus インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(ObjectSE other) |
boolean | equalsCode(CloseStatus other) |
int | getCode() ステータスコードを返します。 |
StringSE | getReason() 理由を返します。ない場合は null を返します。 |
int | hashCode() |
StringSE | toString() |
CloseStatus | withReason(StringSE reason) 指定された理由で、この CloseStatus から新しい CloseStatus を作成します。 |
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic static final CloseStatus NORMAL
public static final CloseStatus GOING_AWAY
public static final CloseStatus PROTOCOL_ERROR
public static final CloseStatus NOT_ACCEPTABLE
public static final CloseStatus NO_STATUS_CODE
public static final CloseStatus NO_CLOSE_FRAME
public static final CloseStatus BAD_DATA
public static final CloseStatus POLICY_VIOLATION
public static final CloseStatus TOO_BIG_TO_PROCESS
public static final CloseStatus REQUIRED_EXTENSION
public static final CloseStatus SERVER_ERROR
public static final CloseStatus SERVICE_RESTARTED
public static final CloseStatus SERVICE_OVERLOAD
public static final CloseStatus TLS_HANDSHAKE_FAILURE
public static final CloseStatus SESSION_NOT_RELIABLE
public CloseStatus(int code)
CloseStatus インスタンスを作成します。code - ステータスコード public CloseStatus(int code,
@Nullable
StringSE reason)CloseStatus インスタンスを作成します。code - ステータスコード reason - 理由 public int getCode()
public CloseStatus withReason(StringSE reason)
CloseStatus から新しい CloseStatus を作成します。reason - 理由 CloseStatus インスタンス public boolean equalsCode(CloseStatus other)
public int hashCode()
ObjectSE の hashCodeSE public StringSE toString()
ObjectSE の toStringSE