|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.xml.XmlPage
public class XmlPage
A page that will be returned for response with content type "text/xml".
It doesn't implement itself Document
to allow to see the source of badly formed
xml responses.
Constructor Summary | |
---|---|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow)
Create an instance. |
Method Summary | |
---|---|
void |
cleanUp()
Clean up this page. |
java.lang.String |
getContent()
Return the content of the page |
WebWindow |
getEnclosingWindow()
Return the window that this page is sitting inside. |
WebResponse |
getWebResponse()
Return the web response that was originally used to create this page. |
org.w3c.dom.Document |
getXmlDocument()
Gets the DOM representation of the xml content |
void |
initialize()
Initialize this page. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlPage(WebResponse webResponse, WebWindow enclosingWindow) throws java.io.IOException
webResponse
- The response from the serverenclosingWindow
- The window that holds the page.
java.io.IOException
- If the page could not be createdMethod Detail |
---|
public void cleanUp()
cleanUp
in interface Page
public java.lang.String getContent()
public WebWindow getEnclosingWindow()
getEnclosingWindow
in interface Page
public WebResponse getWebResponse()
getWebResponse
in interface Page
public org.w3c.dom.Document getXmlDocument()
null
if the content couldn't be parsed.public void initialize()
initialize
in interface Page
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |