|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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)
詳細メッセージの responseCode と 応答ヘッダフィールド 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 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。