|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openid4java.discovery.yadis.YadisResolver
public class YadisResolver
Yadis discovery protocol implementation.
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 :
Field Summary | |
---|---|
static java.lang.String |
YADIS_XRDS_LOCATION
|
Constructor Summary | |
---|---|
YadisResolver(HttpFetcher httpFetcher)
|
|
YadisResolver(HttpFetcherFactory httpFetcherFactory)
|
Method Summary | |
---|---|
java.util.List |
discover(java.lang.String url)
Performs Yadis discovery on the YadisURL. |
java.util.List |
discover(java.lang.String url,
HttpFetcher httpFetcher)
Performs Yadis discovery on the YadisURL. |
java.util.List |
discover(java.lang.String url,
int maxRedirects)
Performs Yadis discovery on the YadisURL. |
java.util.List |
discover(java.lang.String url,
int maxRedirects,
HttpFetcher httpFetcher)
Performs Yadis discovery on the YadisURL. |
YadisResult |
discover(java.lang.String url,
int maxRedirects,
HttpFetcher httpFetcher,
java.util.Set serviceTypes)
|
YadisResult |
discover(java.lang.String url,
int maxRedirects,
java.util.Set serviceTypes)
|
java.util.List |
discoverRP(java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String YADIS_XRDS_LOCATION
Constructor Detail |
---|
@Inject public YadisResolver(HttpFetcherFactory httpFetcherFactory)
public YadisResolver(HttpFetcher httpFetcher)
Method Detail |
---|
public int getMaxRedirects()
public void setMaxRedirects(int maxRedirects)
public java.util.List discoverRP(java.lang.String url) throws DiscoveryException
url
- RP's realm or return_to URL
DiscoveryException
public java.util.List discover(java.lang.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 performed
DiscoveryException
#discover(String, int, HttpCache)
public java.util.List discover(java.lang.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 call
DiscoveryException
#discover(String, int, HttpCache)
public java.util.List discover(java.lang.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 java.util.List discover(java.lang.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(java.lang.String url, int maxRedirects, java.util.Set serviceTypes) throws DiscoveryException
DiscoveryException
public YadisResult discover(java.lang.String url, int maxRedirects, HttpFetcher httpFetcher, java.util.Set serviceTypes) throws DiscoveryException
DiscoveryException
public HttpFetcher getHttpFetcher()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |