|
||||||||||
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
com.gargoylesoftware.htmlunit.xml.XmlPage
public class XmlPage
A page that will be returned for response with content type "text/xml".
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 |
---|
AS_TEXT_BLANK, AS_TEXT_BLOCK_SEPARATOR, AS_TEXT_NEW_LINE, AS_TEXT_TAB, PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Fields inherited from interface org.w3c.dom.Node |
---|
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
---|---|
XmlPage(org.w3c.dom.Node node,
WebWindow enclosingWindow)
Creates an instance. |
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow)
Creates an instance. |
|
XmlPage(WebResponse webResponse,
WebWindow enclosingWindow,
boolean ignoreSAXException)
Creates an instance. |
Method Summary | |
---|---|
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
Not yet implemented. |
org.w3c.dom.Attr |
createAttribute(java.lang.String name)
Not yet implemented. |
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Not yet implemented. |
DomCDataSection |
createCDATASection(java.lang.String data)
|
org.w3c.dom.Comment |
createComment(java.lang.String data)
Not yet implemented. |
org.w3c.dom.DocumentFragment |
createDocumentFragment()
Not yet implemented. |
org.w3c.dom.Element |
createElement(java.lang.String tagName)
Creates an element, the type of which depends on the specified tag name. |
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Create a new Element with the given namespace and qualified name. |
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
Not yet implemented. |
DomProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
|
org.w3c.dom.Text |
createTextNode(java.lang.String data)
Not yet implemented. |
DomElement |
createXmlElement(java.lang.String tagName)
Creates a new XML element with the given tag name. |
DomElement |
createXmlElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
Creates a new XML element with the given namespace and qualified name. |
java.lang.String |
getContent()
Returns the content of the page. |
java.lang.String |
getDocumentURI()
Not yet implemented. |
org.w3c.dom.DOMConfiguration |
getDomConfig()
Not yet implemented. |
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
Not yet implemented. |
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagname)
Not yet implemented. |
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespace,
java.lang.String name)
Not yet implemented. |
org.w3c.dom.DOMImplementation |
getImplementation()
Not yet implemented. |
java.lang.String |
getInputEncoding()
Not yet implemented. |
java.lang.String |
getPageEncoding()
Returns the page encoding. |
boolean |
getStrictErrorChecking()
Not yet implemented. |
org.w3c.dom.Document |
getXmlDocument()
Returns the DOM representation of the XML content. |
java.lang.String |
getXmlEncoding()
Not yet implemented. |
boolean |
getXmlStandalone()
Not yet implemented. |
java.lang.String |
getXmlVersion()
Not yet implemented. |
boolean |
hasCaseSensitiveTagNames()
Returns true if this page has case-sensitive tag names, false otherwise. |
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
Not yet implemented. |
org.w3c.dom.Node |
renameNode(org.w3c.dom.Node n,
java.lang.String namespaceURI,
java.lang.String qualifiedName)
Not yet implemented. |
protected void |
setDocumentType(DomDocumentType type)
Sets the document type. |
void |
setDocumentURI(java.lang.String documentURI)
Not yet implemented. |
void |
setStrictErrorChecking(boolean strictErrorChecking)
Not yet implemented. |
void |
setXmlStandalone(boolean xmlStandalone)
Not yet implemented. |
void |
setXmlVersion(java.lang.String xmlVersion)
Not yet implemented. |
Methods inherited from class com.gargoylesoftware.htmlunit.SgmlPage |
---|
asXml, cleanUp, clone, createDomDocumentFragment, getDoctype, getDocumentElement, getEnclosingWindow, getNodeName, getNodeType, getPage, getWebClient, getWebResponse, initialize, normalizeDocument, setEnclosingWindow |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
---|
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData |
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 createdpublic XmlPage(org.w3c.dom.Node node, WebWindow enclosingWindow)
node
- the node to initialize this page withenclosingWindow
- the window that holds the pagepublic XmlPage(WebResponse webResponse, WebWindow enclosingWindow, boolean ignoreSAXException) throws java.io.IOException
webResponse
- the response from the serverenclosingWindow
- the window that holds the pageignoreSAXException
- Whether to ignore SAXException
or throw it as IOException
java.io.IOException
- if the page could not be createdMethod Detail |
---|
public boolean hasCaseSensitiveTagNames()
hasCaseSensitiveTagNames
in class SgmlPage
public java.lang.String getContent()
public org.w3c.dom.Document getXmlDocument()
null
if the content couldn't be parsedpublic DomElement createXmlElement(java.lang.String tagName)
tagName
- the tag name
public DomElement createXmlElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
namespaceURI
- the URI that identifies an XML namespacequalifiedName
- the qualified name of the element type to instantiate
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
public org.w3c.dom.Attr createAttribute(java.lang.String name)
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
public DomCDataSection createCDATASection(java.lang.String data)
public org.w3c.dom.Comment createComment(java.lang.String data)
public org.w3c.dom.DocumentFragment createDocumentFragment()
public org.w3c.dom.Element createElement(java.lang.String tagName)
createElement
in interface org.w3c.dom.Document
createElement
in class SgmlPage
tagName
- the tag name which determines the type of element to be created
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName)
createElementNS
in interface org.w3c.dom.Document
createElementNS
in class SgmlPage
namespaceURI
- the URI that identifies an XML namespacequalifiedName
- the qualified name of the element type to instantiate
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
public DomProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data)
public org.w3c.dom.Text createTextNode(java.lang.String data)
public java.lang.String getDocumentURI()
public org.w3c.dom.DOMConfiguration getDomConfig()
public org.w3c.dom.Element getElementById(java.lang.String elementId)
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespace, java.lang.String name)
public org.w3c.dom.DOMImplementation getImplementation()
public java.lang.String getInputEncoding()
public boolean getStrictErrorChecking()
public java.lang.String getXmlEncoding()
public boolean getXmlStandalone()
public java.lang.String getXmlVersion()
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep)
public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, java.lang.String namespaceURI, java.lang.String qualifiedName)
public void setDocumentURI(java.lang.String documentURI)
public void setStrictErrorChecking(boolean strictErrorChecking)
public void setXmlStandalone(boolean xmlStandalone)
public void setXmlVersion(java.lang.String xmlVersion)
public java.lang.String getPageEncoding()
getPageEncoding
in class SgmlPage
protected void setDocumentType(DomDocumentType type)
setDocumentType
in class SgmlPage
type
- the document type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |