|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.sourceforge.tsukuyomi.openid.yadis.YadisResult
public class YadisResult
The results of Yadis discovery performed on a YadisURL.
The payload is represented by the XRDS document. Along with it other meta-information is contained, which can be useful while consuming the results of Yadis discoveries.
フィールドの概要 | |
---|---|
static int |
GET_ERROR
|
static int |
GET_INVALID_RESPONSE
|
static int |
GET_NO_XRDS
|
static int |
GET_TRANSPORT_ERROR
|
static int |
HEAD_INVALID_RESPONSE
|
static int |
HEAD_TRANSPORT_ERROR
|
static int |
HTMLMETA_DOWNLOAD_ERROR
|
static int |
HTMLMETA_INVALID_RESPONSE
|
static int |
INVALID_SCHEME
|
static int |
INVALID_URL
|
static int |
OK
|
static int |
UNDISCOVERED
|
static int |
UNKNOWN_ERROR
|
static int |
XRDS_DOWNLOAD_ERROR
|
static int |
XRDS_PARSING_ERROR
|
static int |
XRDS_SIZE_EXCEEDED
|
コンストラクタの概要 | |
---|---|
YadisResult()
|
メソッドの概要 | |
---|---|
String |
dump()
|
String |
getContentType()
Gets the content-type of the response from which the XRDS was extracted. |
Throwable |
getFailureCause()
Gets the throwable (or exception) that caused the failure of the Yadis discovery, if one was thrown and intercepted |
String |
getNormalizedUrl()
Gets the result of following redirects on the YadisURL |
int |
getStatus()
Gets the status code which indicates whether the Yadis discovery succeeded or failed. |
String |
getStatusMessage()
Gets a status message giving more details about the status of the Yadis discovery. |
org.openxri.xml.XRDS |
getXrds()
Gets the Yadis Resource Descriptor (XRDS) document. |
URL |
getXrdsLocation()
Gets the Yadis Resource Descriptor (XRDS) location |
YadisUrl |
getYadisUrl()
Gets the YadisUrl on which discovery is to be performed. |
void |
setContentType(String type)
Sets the content-type of the response from which the XRDS was extracted. |
void |
setFailureCause(Throwable e)
Sets the throwable or exception that caused the failure of the Yadis discovery, if one was thrown and intercepted |
void |
setNormalizedUrl(String _normalizedUrl)
Sets the result of following redirects on the YadisURL |
void |
setStatus(int status)
Sets the status code for the Yadis discovery, indicating whether it succeeded or failed. |
void |
setStatusMessage(String statusMessage)
Sets a status message which gives more details about the status of the Yadis discovery. |
void |
setXrds(org.openxri.xml.XRDS xrds)
Sets the Yadis Resource Descriptor (XRDS) |
void |
setXrdsLocation(String xrdsLocation,
int onFailError)
Sets the Yadis Resource Descriptor (XRDS) location found during discovery. |
void |
setYadisUrl(YadisUrl url)
Sets the YadisURL on which discovery will be performed. |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int UNDISCOVERED
public static final int OK
public static final int UNKNOWN_ERROR
public static final int INVALID_URL
public static final int INVALID_SCHEME
public static final int HEAD_TRANSPORT_ERROR
public static final int HEAD_INVALID_RESPONSE
public static final int GET_ERROR
public static final int GET_TRANSPORT_ERROR
public static final int GET_INVALID_RESPONSE
public static final int GET_NO_XRDS
public static final int HTMLMETA_DOWNLOAD_ERROR
public static final int HTMLMETA_INVALID_RESPONSE
public static final int XRDS_DOWNLOAD_ERROR
public static final int XRDS_PARSING_ERROR
public static final int XRDS_SIZE_EXCEEDED
コンストラクタの詳細 |
---|
public YadisResult()
メソッドの詳細 |
---|
public void setYadisUrl(YadisUrl url)
public YadisUrl getYadisUrl()
public void setXrdsLocation(String xrdsLocation, int onFailError) throws YadisException
The XRDS location can be the same as the YadisUrl, or different if redirects are followed during discovery, or if delegation is used.
xrdsLocation
- The Resource Descriptor URL from where the XRDS is downloadedonFailError
- The error code which will be set in the result if the XRDS
location is not valid
YadisException
public URL getXrdsLocation()
public void setXrds(org.openxri.xml.XRDS xrds)
xrds
- The XRDS document associated with the YadisURL obtained
through Yadis discoverypublic org.openxri.xml.XRDS getXrds()
public String getNormalizedUrl()
public void setNormalizedUrl(String _normalizedUrl)
public void setContentType(String type)
type
- The content-type of the HTTP response that contained the XRDS
documentpublic String getContentType()
public int getStatus()
public void setStatus(int status)
public String getStatusMessage()
public void setStatusMessage(String statusMessage)
public void setFailureCause(Throwable e)
public Throwable getFailureCause()
public String dump()
|
Tsukuyomi OpenID 0.2.0 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |