|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.HttpRetryException
public class HttpRetryException
HTTP 要求を再試行する必要があるが、ストリーミングモードが有効になっているために自動的に再試行できないことを示すために、スローされます。
| コンストラクタの概要 | |
|---|---|
HttpRetryException(String detail,
int code)
指定された応答コードと例外詳細メッセージから、新しい HttpRetryException を構築します。 |
|
HttpRetryException(String detail,
int code,
String location)
詳細メッセージ、応答コード、および Location 応答ヘッダーフィールドの内容に基づいて、新しい HttpRetryException を構築します。 |
|
| メソッドの概要 | |
|---|---|
String |
getLocation()
リダイレクションが原因でエラーが発生した場合に、Location ヘッダーフィールドの値を返します。 |
String |
getReason()
HTTP 要求を再試行できなかった理由を説明する文字列を返します。 |
int |
responseCode()
HTTP 応答コードを返します。 |
| クラス java.lang.Throwable から継承されたメソッド |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public HttpRetryException(String detail,
int code)
HttpRetryException を構築します。
detail - 詳細メッセージcode - サーバーからの HTTP 応答コード
public HttpRetryException(String detail,
int code,
String location)
HttpRetryException を構築します。
detail - 詳細メッセージcode - サーバーからの HTTP 応答コードlocation - リダイレクト先の URL| メソッドの詳細 |
|---|
public int responseCode()
public String getReason()
public String getLocation()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。