|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.SgmlPage
public abstract class SgmlPage
A basic class to be implemented by HtmlPage
and XmlPage
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
DomNode.ChildIterator, DomNode.DescendantElementsIterator |
Field Summary |
---|
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
ATTRIBUTE_NODE, COMMENT_NODE, DOCUMENT_NODE, ELEMENT_NODE, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED, TEXT_NODE |
Constructor Summary | |
---|---|
SgmlPage(WebResponse webResponse,
WebWindow webWindow)
Create an instance of SgmlPage |
Method Summary | |
---|---|
void |
cleanUp()
Clean up this page. |
DomDocumentFragment |
createDomDocumentFragment()
Creates an empty DomDocumentFragment object. |
WebWindow |
getEnclosingWindow()
Return the window that this page is sitting inside. |
Page |
getNativePage()
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Returns the Page interface, should be removed, and use DomNode.getPage() instead. |
String |
getNodeName()
Get the name for the current node. |
short |
getNodeType()
Get the type of the current node. |
WebClient |
getWebClient()
Return the WebClient that originally loaded this page |
WebResponse |
getWebResponse()
Return the web response that was originally used to create this page. |
void |
initialize()
Initialize this page. |
void |
setEnclosingWindow(WebWindow window)
Set the window that contains this page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SgmlPage(WebResponse webResponse, WebWindow webWindow)
webResponse
- The web response that was used to create this pagewebWindow
- The window that this page is being loaded into.Method Detail |
---|
public void cleanUp() throws IOException
cleanUp
in interface Page
IOException
- If an IO problem occurs.public WebResponse getWebResponse()
getWebResponse
in interface Page
public void initialize() throws IOException
initialize
in interface Page
IOException
- If an IO problem occurs.public String getNodeName()
getNodeName
in class DomNode
public short getNodeType()
getNodeType
in class DomNode
public WebWindow getEnclosingWindow()
getEnclosingWindow
in interface Page
public void setEnclosingWindow(WebWindow window)
window
- The new frame or null if this page is being removed from a frame.public WebClient getWebClient()
public DomDocumentFragment createDomDocumentFragment()
DomDocumentFragment
object.
DomDocumentFragment
.public Page getNativePage()
DomNode.getPage()
instead.
getNativePage
in class DomNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |