public class WebClientResponseException extends WebClientException
| コンストラクターと説明 |
|---|
WebClientResponseException(StringSE message, int statusCode, StringSE statusText, HttpHeaders headers, byte[] responseBody, CharsetSE responseCharset) 指定されたレスポンスデータでの新しいインスタンスを構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
HttpHeaders | getHeaders()HTTP レスポンスヘッダーを返します。 |
int | getRawStatusCode() 生の HTTP ステータスコード値を返します。 |
byte[] | getResponseBodyAsByteArray() レスポンス本文をバイト配列として返します。 |
StringSE | getResponseBodyAsString() レスポンス本文を文字列として返します。 |
HttpStatus | getStatusCode()HTTP ステータスコード値を返します。 |
StringSE | getStatusText()HTTP ステータステキストを返します。 |
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressedSE, fillInStackTraceSE, getCauseSE, getLocalizedMessageSE, getStackTraceSE, getSuppressedSE, initCauseSE, printStackTraceSE, printStackTraceSE, printStackTraceSE, setStackTraceSE, toStringSEcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic WebClientResponseException(StringSE message, int statusCode, StringSE statusText, @Nullable HttpHeaders headers, @Nullable byte[] responseBody, @Nullable CharsetSE responseCharset)
statusCode - 生のステータスコード値 statusText - ステータステキスト headers - レスポンスヘッダー (null の場合があります)responseBody - レスポンス本文のコンテンツ (null の場合があります)responseCharset - レスポンス本体の文字セット (null の場合があります)public HttpStatus getStatusCode()
public int getRawStatusCode()
public StringSE getStatusText()
public HttpHeaders getHeaders()
public byte[] getResponseBodyAsByteArray()
public StringSE getResponseBodyAsString()