public class YadisResult extends 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.
Constructor and Description |
---|
YadisResult() |
Modifier and Type | Method and Description |
---|---|
String |
dump() |
String |
getContentType()
Gets the content-type of the response from which the XRDS was extracted.
|
List |
getDiscoveredInformation(Set targetTypes) |
int |
getEndpointCount() |
List |
getEndpoints()
Gets the OpenID XRDS endpoints discovered from an identifier.
|
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
|
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(String type)
Sets the content-type of the response from which the XRDS was extracted.
|
void |
setEndpoints(List endpoints)
Sets the OpenID XRDS endpoints discovered from an identifier.
|
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 |
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.
|
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 validYadisException
public URL getXrdsLocation()
public void setEndpoints(List endpoints)
public List getEndpoints()
public int getEndpointCount()
public List getDiscoveredInformation(Set targetTypes) throws DiscoveryException
DiscoveryException
public boolean hasEndpoints()
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 void setFailureCause(Throwable e)
public Throwable getFailureCause()
public String dump()
Copyright © 2013 Sxip. All Rights Reserved.