@Published public class HttpErrorResponse extends java.lang.RuntimeException
HttpResponse,
直列化された形式| コンストラクタと説明 |
|---|
HttpErrorResponse()
デフォルトコンストラクタ。
|
HttpErrorResponse(HttpResponse response)
指定された
HttpResponseを持つHttpErrorResponseを生成する。 |
HttpErrorResponse(HttpResponse response,
java.lang.Throwable e)
指定された
HttpResponseと例外を持つHttpErrorResponseを生成する。 |
HttpErrorResponse(int statusCode)
指定されたステータスコードでエラーレスポンスを返す例外を生成する。
|
HttpErrorResponse(int statusCode,
java.lang.String contentPath)
指定されたステータスコード・コンテンツパスでエラーレスポンスを返す例外を生成する。
|
HttpErrorResponse(int statusCode,
java.lang.String contentPath,
java.lang.Throwable e)
指定されたステータスコード・コンテンツパスでエラーレスポンスを返す例外を生成する。
|
HttpErrorResponse(int statusCode,
java.lang.Throwable e)
指定されたステータスコードでエラーレスポンスを返す例外を生成する。
|
HttpErrorResponse(java.lang.String contentPath)
コンテンツのパスを指定するコンストラクタ。
|
HttpErrorResponse(java.lang.String contentPath,
java.lang.Throwable e)
コンテンツのパスと元例外を指定するコンストラクタ。
|
HttpErrorResponse(java.lang.Throwable e)
元例外を指定するコンストラクタ。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
HttpResponse |
getResponse()
レスポンス情報を取得する。
|
HttpErrorResponse |
setResponse(HttpResponse response)
レスポンス情報を設定する。
|
public HttpErrorResponse()
ステータスコードは400(Bad Request)を使用する。
このコンストラクタの処理は、以下のコードと同等である。
new HttpErrorResponse(400);
public HttpErrorResponse(java.lang.Throwable e)
ステータスコードは400(Bad Request)を使用する。
このコンストラクタの処理は、以下のコードと同等である。
new HttpErrorResponse(400, e);
e - Throwablepublic HttpErrorResponse(java.lang.String contentPath)
ステータスコードは400(Bad Request)を使用する。
このコンストラクタの処理は、以下のコードと同等である。
new HttpErrorResponse(400, "/error.jsp");
contentPath - レスポンスボディに出力するコンテンツのパスpublic HttpErrorResponse(java.lang.String contentPath,
java.lang.Throwable e)
ステータスコードは400(Bad Request)を使用する。
このコンストラクタの処理は、以下のコードと同等である。
new HttpErrorResponse(400, "/error.jsp", e);
contentPath - レスポンスボディに出力するコンテンツのパスe - Throwablepublic HttpErrorResponse(int statusCode)
statusCode - ステータスコードpublic HttpErrorResponse(int statusCode,
java.lang.Throwable e)
statusCode - ステータスコードe - 元例外public HttpErrorResponse(int statusCode,
java.lang.String contentPath)
statusCode - ステータスコードcontentPath - レスポンスボディに出力するコンテンツのパスpublic HttpErrorResponse(int statusCode,
java.lang.String contentPath,
java.lang.Throwable e)
statusCode - ステータスコードcontentPath - レスポンスボディに出力するコンテンツのパスe - 元例外public HttpErrorResponse(HttpResponse response)
HttpResponseを持つHttpErrorResponseを生成する。response - HttpResponsepublic HttpErrorResponse(HttpResponse response, java.lang.Throwable e)
HttpResponseと例外を持つHttpErrorResponseを生成する。response - HttpResponsee - 元例外public HttpResponse getResponse()
public HttpErrorResponse setResponse(HttpResponse response)
response - レスポンス情報