|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.meterware.httpunit.ParsedHTML com.meterware.httpunit.HTMLPage
This class represents an HTML page returned from a request.
Nested Class Summary | |
class |
HTMLPage.Scriptable
scriptable for HTML Page |
Method Summary | |
java.lang.String |
getExternalStyleSheet()
Returns the location of the linked stylesheet in the head
|
java.lang.String[] |
getMetaTagContent(java.lang.String attribute,
java.lang.String attributeValue)
Retrieves the "content" of the meta tags for a key pair attribute-attributeValue. |
java.lang.String |
getOnLoadEvent()
Returns the onLoad event script. |
java.lang.String |
getTitle()
Returns the title of the page. |
void |
parse(java.lang.String text,
java.net.URL pageURL)
parse the given test with the given URL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public java.lang.String getTitle() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String getOnLoadEvent() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String getExternalStyleSheet() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public java.lang.String[] getMetaTagContent(java.lang.String attribute, java.lang.String attributeValue)
this can be used like this
getMetaTagContent("name","robots") will return { "index","follow" }
getMetaTagContent("http-equiv","Expires") will return { "now" }
public void parse(java.lang.String text, java.net.URL pageURL) throws org.xml.sax.SAXException, java.io.IOException
text
- pageURL
-
org.xml.sax.SAXException
java.io.IOException
|
Copyright © 2000-2008 Russell Gold. See license agreement for rights granted. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |