|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openid4java.discovery.html.HtmlResolver
public class HtmlResolver
| Field Summary | |
|---|---|
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 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
@Inject public HtmlResolver(HttpFetcherFactory httpFetcherFactory)
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||