com.meterware.httpunit

Class HTMLPage

public class HTMLPage extends ParsedHTML

This class represents an HTML page returned from a request.

Author: Russell Gold Benoit Xhenseval

Nested Class Summary
classHTMLPage.Scriptable
Method Summary
StringgetExternalStyleSheet()
Returns the location of the linked stylesheet in the head
String[]getMetaTagContent(String attribute, String attributeValue)
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue.
StringgetOnLoadEvent()
Returns the onLoad event script.
StringgetTitle()
Returns the title of the page.
voidparse(String text, URL pageURL)

Method Detail

getExternalStyleSheet

public String getExternalStyleSheet()
Returns the location of the linked stylesheet in the head

getMetaTagContent

public String[] getMetaTagContent(String attribute, String attributeValue)
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue. this can be used like this getMetaTagContent("name","robots") will return { "index","follow" } getMetaTagContent("http-equiv","Expires") will return { "now" }

getOnLoadEvent

public String getOnLoadEvent()
Returns the onLoad event script.

getTitle

public String getTitle()
Returns the title of the page.

parse

public void parse(String text, URL pageURL)