public class CyberNekoDOMHtmlParser extends java.lang.Object implements HtmlParser
HtmlParser implementation using the DOMParser of CyberNeko HTML.OpenID4JavaDOMParser| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
_log |
private static boolean |
DEBUG |
| Constructor and Description |
|---|
CyberNekoDOMHtmlParser() |
| Modifier and Type | Method and Description |
|---|---|
private org.apache.html.dom.HTMLDocumentImpl |
parseDocument(java.lang.String htmlData) |
void |
parseHtml(java.lang.String htmlData,
HtmlResult result)
Parses the HTML data and stores in the result the discovered openid
information.
|
private void |
setResult(java.lang.String rel,
java.lang.String href,
HtmlResult result)
Set the result from
rel and href that
parsed from node link. |
private static final org.apache.commons.logging.Log _log
private static final boolean DEBUG
public void parseHtml(java.lang.String htmlData,
HtmlResult result)
throws DiscoveryException
HtmlParserparseHtml in interface HtmlParserhtmlData - HTML data obtained from the URL identifier.result - The HTML result.DiscoveryExceptionprivate org.apache.html.dom.HTMLDocumentImpl parseDocument(java.lang.String htmlData)
throws DiscoveryException
DiscoveryExceptionprivate void setResult(java.lang.String rel,
java.lang.String href,
HtmlResult result)
throws DiscoveryException
rel and href that
parsed from node link.rel - the relhref - the hrefresult - the result to setDiscoveryException - if the value has been setted yet, that is to say, find more
than one entries with the same name(attribute value of
rel).Copyright 2006-2008 Sxip Identity Corporation