org.openid4java.discovery.html
Class HtmlResolver

java.lang.Object
  extended by org.openid4java.discovery.html.HtmlResolver

public class HtmlResolver
extends java.lang.Object

Author:
Marius Scurtescu, Johnny Bufu, Sutra Zhou

Constructor Summary
HtmlResolver(HttpFetcherFactory httpFetcherFactory)
           
 
Method Summary
 java.util.List discoverHtml(UrlIdentifier identifier)
          Performs HTML discovery on the supplied URL identifier.
 java.util.List discoverHtml(UrlIdentifier identifier, HttpFetcher httpFetcher)
          Performs HTML discovery on the supplied URL identifier.
 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
 

Constructor Detail

HtmlResolver

@Inject
public HtmlResolver(HttpFetcherFactory httpFetcherFactory)
Method Detail

getMaxRedirects

public int getMaxRedirects()
Gets the internal limit configured for the maximum number of redirects to be followed for the HTTP calls.


setMaxRedirects

public void setMaxRedirects(int maxRedirects)
Sets the maximum number of redirects to be followed for the HTTP calls.


discoverHtml

public java.util.List discoverHtml(UrlIdentifier identifier)
                            throws DiscoveryException
Performs HTML discovery on the supplied URL identifier.

Parameters:
identifier - The URL identifier.
Returns:
List of DiscoveryInformation entries discovered obtained from the URL Identifier.
Throws:
DiscoveryException

discoverHtml

public java.util.List discoverHtml(UrlIdentifier identifier,
                                   HttpFetcher httpFetcher)
                            throws DiscoveryException
Performs HTML discovery on the supplied URL identifier.

Parameters:
identifier - The URL identifier.
httpFetcher - HttpFetcher object to use for placing the call.
Returns:
List of DiscoveryInformation entries discovered obtained from the URL Identifier.
Throws:
DiscoveryException


Copyright © 2012 Sxip. All Rights Reserved.