org.openid4java.discovery.yadis
public class YadisResult extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_contentType
The content-type of the XRDS response.
|
private java.util.List |
_endpoints
XRDS endpoints obtained by performing Yadis discovery on the YadisURL.
|
private java.lang.Throwable |
_failureCause
The throwable or exception that caused the failure, if available.
|
private static org.apache.commons.logging.Log |
_log |
private java.lang.String |
_normalizedUrl
The result of following redirects from the request_uri
|
private java.net.URL |
_xrdsLocation
The URL from where the XRDS document was retrieved.
|
private YadisUrl |
_yadisUrl
The YadisURL on which discovery was performed.
|
private static boolean |
DEBUG |
Constructor and Description |
---|
YadisResult() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dump() |
java.lang.String |
getContentType()
Gets the content-type of the response from which the XRDS was extracted.
|
java.util.List |
getDiscoveredInformation(java.util.Set targetTypes) |
int |
getEndpointCount() |
java.util.List |
getEndpoints()
Gets the OpenID XRDS endpoints discovered from an identifier.
|
java.lang.Throwable |
getFailureCause()
Gets the throwable (or exception) that caused the failure of the Yadis
discovery, if one was thrown and intercepted
|
java.lang.String |
getNormalizedUrl()
Gets the result of following redirects on the YadisURL
|
java.net.URL |
getXrdsLocation()
Gets the Yadis Resource Descriptor (XRDS) location
|
YadisUrl |
getYadisUrl()
Gets the YadisUrl on which discovery is to be performed.
|
boolean |
hasEndpoints() |
void |
setContentType(java.lang.String type)
Sets the content-type of the response from which the XRDS was extracted.
|
void |
setEndpoints(java.util.List endpoints)
Sets the OpenID XRDS endpoints discovered from an identifier.
|
void |
setFailureCause(java.lang.Throwable e)
Sets the throwable or exception that caused the failure of the Yadis
discovery, if one was thrown and intercepted
|
void |
setNormalizedUrl(java.lang.String _normalizedUrl)
Sets the result of following redirects on the YadisURL
|
void |
setXrdsLocation(java.lang.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.
|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private java.util.List _endpoints
private java.lang.String _contentType
private YadisUrl _yadisUrl
private java.lang.String _normalizedUrl
private java.net.URL _xrdsLocation
private java.lang.Throwable _failureCause
public void setYadisUrl(YadisUrl url)
public YadisUrl getYadisUrl()
public void setXrdsLocation(java.lang.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 validYadisException
public java.net.URL getXrdsLocation()
public void setEndpoints(java.util.List endpoints)
public java.util.List getEndpoints()
public int getEndpointCount()
public java.util.List getDiscoveredInformation(java.util.Set targetTypes) throws DiscoveryException
DiscoveryException
public boolean hasEndpoints()
public java.lang.String getNormalizedUrl()
public void setNormalizedUrl(java.lang.String _normalizedUrl)
public void setContentType(java.lang.String type)
type
- The content-type of the HTTP response
that contained the XRDS documentpublic java.lang.String getContentType()
public void setFailureCause(java.lang.Throwable e)
public java.lang.Throwable getFailureCause()
public java.lang.String dump()
Copyright 2006-2008 Sxip Identity Corporation