public class YadisResult extends Object
| 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 YadisUrl getYadisUrl()
public void setYadisUrl(YadisUrl url)
public void setXrdsLocation(String xrdsLocation, int onFailError) throws YadisException
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 validYadisExceptionpublic URL getXrdsLocation()
public List getEndpoints()
public void setEndpoints(List endpoints)
public int getEndpointCount()
public List getDiscoveredInformation(Set targetTypes) throws DiscoveryException
DiscoveryExceptionpublic boolean hasEndpoints()
public String getNormalizedUrl()
public void setNormalizedUrl(String _normalizedUrl)
public String getContentType()
public void setContentType(String type)
type - The content-type of the HTTP response
that contained the XRDS documentpublic Throwable getFailureCause()
public void setFailureCause(Throwable e)
public String dump()
Copyright © 2015 WSO2. All rights reserved.