com.meterware.httpunit.parsing

Interface DocumentAdapter

public interface DocumentAdapter

Author: Russell Gold

Method Summary
StringgetIncludedScript(String srcAttribute)
Returns the contents of an included script, given its src attribute.
ScriptableDelegategetScriptableObject()
Returns the Scriptable object associated with the document
voidsetRootNode(Node rootNode)
Records the root (Document) node.

Method Detail

getIncludedScript

public String getIncludedScript(String srcAttribute)
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

getScriptableObject

public ScriptableDelegate getScriptableObject()
Returns the Scriptable object associated with the document

setRootNode

public void setRootNode(Node rootNode)
Records the root (Document) node.