org.openid4java.discovery.html
public class HtmlResolver extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private HttpFetcher |
_httpFetcher |
private static org.apache.commons.logging.Log |
_log |
private int |
_maxRedirects
Maximum number of redirects to be followed for the HTTP calls.
|
private static boolean |
DEBUG |
private static HtmlParser |
HTML_PARSER |
private static java.lang.String |
HTML_PARSER_CLASS_NAME_KEY |
Constructor and Description |
---|
HtmlResolver(HttpFetcherFactory httpFetcherFactory) |
Modifier and Type | Method and Description |
---|---|
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.
|
private java.util.List |
extractDiscoveryInformation(HtmlResult htmlResult)
Extracts OpenID discovery endpoints from a HTML discovery result.
|
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.
|
private static org.apache.commons.logging.Log _log
private static final boolean DEBUG
private static final java.lang.String HTML_PARSER_CLASS_NAME_KEY
private static final HtmlParser HTML_PARSER
private final HttpFetcher _httpFetcher
private int _maxRedirects
@Inject public HtmlResolver(HttpFetcherFactory httpFetcherFactory)
public int getMaxRedirects()
public void setMaxRedirects(int maxRedirects)
public java.util.List discoverHtml(UrlIdentifier identifier) throws DiscoveryException
identifier
- The URL identifier.DiscoveryException
public java.util.List discoverHtml(UrlIdentifier identifier, HttpFetcher httpFetcher) throws DiscoveryException
identifier
- The URL identifier.httpFetcher
- HttpFetcher
object to use for placing the call.DiscoveryException
private java.util.List extractDiscoveryInformation(HtmlResult htmlResult) throws DiscoveryException
htmlResult
- HTML discovery result.DiscoveryException
- when invalid information is discovered.Copyright 2006-2008 Sxip Identity Corporation