public class YadisResolver extends Object
Yadis discovery protocol returns a Yadis Resource Descriptor (XRDS) document associated with a Yadis Identifier (YadisID)
YadisIDs can be any type of identifiers that are resolvable to a URL form, and in addition the URL form uses a HTTP or a HTTPS schema. Such an URL is defined by the Yadis speficification as a YadisURL. This functionality is implemented by the YadisURL helper class.
The discovery of the XRDS document is performed by the discover method on a YadisUrl.
Internal parameters used during the discovery process :
Modifier and Type | Field and Description |
---|---|
static String |
YADIS_XRDS_LOCATION |
Constructor and Description |
---|
YadisResolver(HttpFetcher httpFetcher) |
YadisResolver(HttpFetcherFactory httpFetcherFactory) |
Modifier and Type | Method and Description |
---|---|
List |
discover(String url)
Performs Yadis discovery on the YadisURL.
|
List |
discover(String url,
HttpFetcher httpFetcher)
Performs Yadis discovery on the YadisURL.
|
List |
discover(String url,
int maxRedirects)
Performs Yadis discovery on the YadisURL.
|
List |
discover(String url,
int maxRedirects,
HttpFetcher httpFetcher)
Performs Yadis discovery on the YadisURL.
|
YadisResult |
discover(String url,
int maxRedirects,
HttpFetcher httpFetcher,
Set serviceTypes) |
YadisResult |
discover(String url,
int maxRedirects,
Set serviceTypes) |
List |
discoverRP(String url)
Performs Relyin Party discovery on the supplied URL.
|
HttpFetcher |
getHttpFetcher() |
int |
getMaxRedirects()
Gets the internal limit configured for the maximum number of redirects
to be followed for the HTTP calls.
|
void |
setMaxRedirects(int maxRedirects)
Sets the maximum number of redirects to be followed for the HTTP calls.
|
public static final String YADIS_XRDS_LOCATION
@Inject public YadisResolver(HttpFetcherFactory httpFetcherFactory)
public YadisResolver(HttpFetcher httpFetcher)
public int getMaxRedirects()
public void setMaxRedirects(int maxRedirects)
public List discoverRP(String url) throws DiscoveryException
url
- RP's realm or return_to URLDiscoveryException
public List discover(String url) throws DiscoveryException
The maximum number of redirects that are followed is determined by the #_maxRedirects member field.
url
- YadisURL on which discovery will be performedDiscoveryException
#discover(String, int, HttpCache)
public List discover(String url, HttpFetcher httpFetcher) throws DiscoveryException
The maximum number of redirects that are followed is determined by the #_maxRedirects member field.
url
- YadisURL on which discovery will be performedhttpFetcher
- HttpFetcher
object to use for the callDiscoveryException
#discover(String, int, HttpCache)
public List discover(String url, int maxRedirects) throws DiscoveryException
url
- YadisURL on which discovery will be performedmaxRedirects
- The maximum number of redirects to be followed.DiscoveryException
YadisResult
public List discover(String url, int maxRedirects, HttpFetcher httpFetcher) throws DiscoveryException
url
- YadisURL on which discovery will be performedmaxRedirects
- The maximum number of redirects to be followed.httpFetcher
- HttpFetcher
object to use for the call.DiscoveryException
YadisResult
public YadisResult discover(String url, int maxRedirects, Set serviceTypes) throws DiscoveryException
DiscoveryException
public YadisResult discover(String url, int maxRedirects, HttpFetcher httpFetcher, Set serviceTypes) throws DiscoveryException
DiscoveryException
public HttpFetcher getHttpFetcher()
Copyright © 2013 Sxip. All rights reserved.