|
||||||||||
| 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 int |
_connTimeout
HTTP connect timeout, in milliseconds. |
private static org.apache.commons.logging.Log |
_log
|
private int |
_maxHtmlSize
Maximum length (in bytes) to read when parsing a HTML response. |
private int |
_maxRedirects
Maximum number of redirects to be followed for the HTTP calls. |
private int |
_socketTimeout
HTTP socket (read) timeout, in milliseconds. |
private static boolean |
DEBUG
|
| Constructor Summary | |
|---|---|
HtmlResolver()
|
|
| Method Summary | |
|---|---|
private java.lang.String |
call(java.net.URL url,
HtmlResult result)
Performs a HTTP call on the provided URL identifier. |
HtmlResult |
discover(UrlIdentifier identifier)
Performs HTML discovery on the supplied URL identifier. |
int |
getConnTimeout()
Gets the HTTP connect timeout, in milliseconds. |
int |
getMaxHtmlSize()
Gets the aximum length (in bytes) to read when parsing a HTML response. |
int |
getMaxRedirects()
Gets the internal limit configured for the maximum number of redirects to be followed for the HTTP calls. |
int |
getSocketTimeout()
Gets the HTTP socket (read) timeout, in milliseconds. |
private void |
parseHtml(java.lang.String htmlData,
HtmlResult result)
Parses the HTML data and stores in the result the discovered openid information. |
void |
setConnTimeout(int connTimeout)
Sets the HTTP connect timeout, in milliseconds. |
void |
setMaxHtmlSize(int maxHtmlSize)
Sets maximum length (in bytes) to read when parsing a HTML response. |
void |
setMaxRedirects(int maxRedirects)
Sets the maximum number of redirects to be followed for the HTTP calls. |
void |
setSocketTimeout(int socketTimeout)
Sets HTTP socket (read) timeout, in milliseconds. |
| 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 int _maxRedirects
private int _maxHtmlSize
private int _connTimeout
private int _socketTimeout
| Constructor Detail |
|---|
public HtmlResolver()
| Method Detail |
|---|
public int getMaxRedirects()
public void setMaxRedirects(int maxRedirects)
public int getMaxHtmlSize()
public void setMaxHtmlSize(int maxHtmlSize)
public int getConnTimeout()
public void setConnTimeout(int connTimeout)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public HtmlResult discover(UrlIdentifier identifier)
throws DiscoveryException
identifier - The URL identifier.
DiscoveryException
private java.lang.String call(java.net.URL url,
HtmlResult result)
throws DiscoveryException
url - The URL identifier.result - The HTML discovery result, in which the claimed
identifier is set to the input URL after following
redirects.
DiscoveryException
private void parseHtml(java.lang.String htmlData,
HtmlResult result)
throws DiscoveryException
htmlData - HTML data obtained from the URL identifier.result - The HTML result.
DiscoveryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||