パッケージ jakarta.ws.rs
クラス RedirectionException
- java.lang.ObjectSE
-
- java.lang.ThrowableSE
-
- java.lang.ExceptionSE
-
- java.lang.RuntimeExceptionSE
-
- jakarta.ws.rs.WebApplicationException
-
- jakarta.ws.rs.RedirectionException
- 実装されているすべてのインターフェース:
SerializableSE
public class RedirectionException extends WebApplicationException
リクエストのリダイレクトを示すランタイムアプリケーション例外(HTTP3xxステータスコード)。- 導入:
- 2.0
- 作成者:
- Marek Potociar
- 関連事項:
- 連載形式
コンストラクターの概要
コンストラクター コンストラクター 説明 RedirectionException(int status, URISE location)新しいリダイレクト例外を構築します。RedirectionException(Response response)新しいリダイレクト例外を構築します。RedirectionException(Response.Status status, URISE location)新しいリダイレクト例外を構築します。RedirectionException(StringSE message, int status, URISE location)新しいリダイレクト例外を構築します。RedirectionException(StringSE message, Response response)新しいリダイレクト例外を構築します。RedirectionException(StringSE message, Response.Status status, URISE location)新しいリダイレクト例外を構築します。
方法の概要
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 URISEgetLocation()リダイレクトレスポンスの場所を取得します。クラス jakarta.ws.rs.WebApplicationException から継承されたメソッド
getResponse
クラス java.lang.ThrowableSE から継承されたメソッド
addSuppressedSE, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCauseSE, printStackTrace, printStackTraceSE, printStackTraceSE, setStackTraceSE, toString
コンストラクターの詳細
RedirectionException
public RedirectionException(Response.Status status, URISE location)
新しいリダイレクト例外を構築します。- パラメーター:
status- リダイレクトステータス。3xxリダイレクトコードである必要があります。location- レスポンスLocationヘッダーに配置されたリダイレクト URI。- 例外:
IllegalArgumentExceptionSE- ステータスコードがnullであるか、Response.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
RedirectionException
public RedirectionException(StringSE message, Response.Status status, URISE location)
新しいリダイレクト例外を構築します。- パラメーター:
message- 詳細メッセージ(Throwable.getMessage()メソッドによる後の検索のために保存されます)。status- リダイレクトステータス。3xxリダイレクトコードである必要があります。location- レスポンスLocationヘッダーに配置されたリダイレクト URI。- 例外:
IllegalArgumentExceptionSE- ステータスコードがnullであるか、Response.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
RedirectionException
public RedirectionException(int status, URISE location)新しいリダイレクト例外を構築します。- パラメーター:
status- リダイレクトステータス。3xxリダイレクトコードである必要があります。location- レスポンスLocationヘッダーに配置されたリダイレクト URI。- 例外:
IllegalArgumentExceptionSE- ステータスコードが有効な HTTP ステータスコードではない場合、またはResponse.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
RedirectionException
public RedirectionException(StringSE message, int status, URISE location)
新しいリダイレクト例外を構築します。- パラメーター:
message- 詳細メッセージ(Throwable.getMessage()メソッドによる後の検索のために保存されます)。status- リダイレクトステータス。3xxリダイレクトコードである必要があります。location- レスポンスLocationヘッダーに配置されたリダイレクト URI。- 例外:
IllegalArgumentExceptionSE- ステータスコードが有効な HTTP ステータスコードではない場合、またはResponse.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
RedirectionException
public RedirectionException(Response response)
新しいリダイレクト例外を構築します。- パラメーター:
response- リダイレクトレスポンス。ステータスコードを3xxリダイレクトコードに設定する必要があります。- 例外:
IllegalArgumentExceptionSE- レスポンスステータスコードがResponse.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
RedirectionException
public RedirectionException(StringSE message, Response response)
新しいリダイレクト例外を構築します。- パラメーター:
message- 詳細メッセージ(Throwable.getMessage()メソッドによる後の検索のために保存されます)。response- リダイレクトレスポンス。ステータスコードを3xxリダイレクトコードに設定する必要があります。- 例外:
IllegalArgumentExceptionSE- レスポンスステータスコードがResponse.Status.Family.REDIRECTIONステータスコードファミリのものではない場合。
メソッドの詳細
getLocation
public URISE getLocation()
リダイレクトレスポンスの場所を取得します。- 戻り値:
- リダイレクトレスポンスの場所。