org.openid4java.discovery.yadis
Class CyberNekoDOMYadisHtmlParser

java.lang.Object
  extended by org.openid4java.discovery.yadis.CyberNekoDOMYadisHtmlParser
All Implemented Interfaces:
YadisHtmlParser

public class CyberNekoDOMYadisHtmlParser
extends java.lang.Object
implements YadisHtmlParser

A YadisHtmlParser implementation using the DOMParser of CyberNeko HTML.

Since:
0.9.4
Author:
Sutra Zhou
See Also:
OpenID4JavaDOMParser

Field Summary
private static org.apache.commons.logging.Log _log
           
private static boolean DEBUG
           
 
Constructor Summary
CyberNekoDOMYadisHtmlParser()
           
 
Method Summary
 java.lang.String getHtmlMeta(java.lang.String input)
          Parses the HTML input stream and scans for the Yadis XRDS location in the HTML HEAD Meta tags.
private  org.apache.html.dom.HTMLDocumentImpl parseDocument(java.lang.String htmlData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

private static final org.apache.commons.logging.Log _log

DEBUG

private static final boolean DEBUG
Constructor Detail

CyberNekoDOMYadisHtmlParser

public CyberNekoDOMYadisHtmlParser()
Method Detail

getHtmlMeta

public java.lang.String getHtmlMeta(java.lang.String input)
                             throws YadisException
Description copied from interface: YadisHtmlParser
Parses the HTML input stream and scans for the Yadis XRDS location in the HTML HEAD Meta tags.

Specified by:
getHtmlMeta in interface YadisHtmlParser
Parameters:
input - input data stream
Returns:
String the XRDS location URL, or null if not found
Throws:
YadisException - on parsing errors or Yadis protocal violations

parseDocument

private org.apache.html.dom.HTMLDocumentImpl parseDocument(java.lang.String htmlData)
                                                    throws YadisException
Throws:
YadisException


Copyright 2006-2008 Sxip Identity Corporation