|
JavaTM 2 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)
建構一個新 HttpRetryException,使其具有詳細訊息 responseCode 和 Location 回應頭欄位的內容。 |
|
| 方法摘要 | |
|---|---|
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,使其具有詳細訊息 responseCode 和 Location 回應頭欄位的內容。
detail - 詳細訊息。code - 發自伺服器的 HTTP 回應程式碼。location - 作為重定向目標的 URL| 方法詳細資訊 |
|---|
public int responseCode()
public String getReason()
public String getLocation()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。