"Fossies" - the Fresh Open Source Software Archive

Member "httpunit-1.7/doc/api/com/meterware/httpunit/parsing/DocumentAdapter.html" (20 May 2008, 10109 Bytes) of package /linux/www/httpunit-1.7.zip:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


com.meterware.httpunit.parsing
Interface DocumentAdapter


public interface DocumentAdapter

Author:
Russell Gold

Method Summary
 java.lang.String getIncludedScript(java.lang.String srcAttribute)
          Returns the contents of an included script, given its src attribute.
 ScriptingHandler getScriptingHandler()
          Returns the Scriptable object associated with the document
 void setDocument(org.w3c.dom.html.HTMLDocument document)
          Records the root (Document) node.
 

Method Detail

setDocument

public void setDocument(org.w3c.dom.html.HTMLDocument document)
Records the root (Document) node.


getIncludedScript

public java.lang.String getIncludedScript(java.lang.String srcAttribute)
                                   throws java.io.IOException
Returns the contents of an included script, given its src attribute.

Parameters:
srcAttribute - the relative URL for the included script
Returns:
the contents of the script.
Throws:
java.io.IOException - if there is a problem retrieving the script

getScriptingHandler

public ScriptingHandler getScriptingHandler()
Returns the Scriptable object associated with the document


Copyright © 2000-2008 Russell Gold. See license agreement for rights granted.