org.openid4java.discovery.html
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
HtmlParser
parseHtml
in interface HtmlParser
htmlData
- HTML data obtained from the URL identifier.result
- The HTML result.DiscoveryException
private org.apache.html.dom.HTMLDocumentImpl parseDocument(java.lang.String htmlData) throws DiscoveryException
DiscoveryException
private void setResult(java.lang.String rel, java.lang.String href, HtmlResult result) throws DiscoveryException
rel
and href
that
parsed from node link
.rel
- the rel
href
- the href
result
- 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