Module io.sf.carte.css4j.dom4j
Package io.sf.carte.doc.dom4j
Class DOM4JUserAgent.AgentXHTMLDocumentFactory.AgentXHTMLDocument
java.lang.Object
org.dom4j.tree.AbstractNode
org.dom4j.tree.AbstractBranch
org.dom4j.tree.AbstractDocument
org.dom4j.tree.DefaultDocument
org.dom4j.dom.DOMDocument
io.sf.carte.doc.dom4j.XHTMLDocument
io.sf.carte.doc.dom4j.DOM4JUserAgent.AgentXHTMLDocumentFactory.AgentXHTMLDocument
- All Implemented Interfaces:
CSSDocument
,CSSNode
,Serializable
,Cloneable
,Branch
,Document
,Node
,Document
,Node
,DocumentStyle
- Enclosing class:
DOM4JUserAgent.AgentXHTMLDocumentFactory
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.sf.carte.doc.style.css.CSSDocument
CSSDocument.ComplianceMode
-
Field Summary
Fields inherited from class io.sf.carte.doc.dom4j.XHTMLDocument
XHTML_NAMESPACE_URI
Fields inherited from class org.dom4j.tree.AbstractDocument
encoding
Fields inherited from class org.dom4j.tree.AbstractBranch
DEFAULT_CONTENT_LIST_SIZE
Fields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMES
Fields inherited from interface org.dom4j.Node
ANY_NODE, ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, MAX_NODE_TYPE, NAMESPACE_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, UNKNOWN_NODE
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isVisitedURI
(String href) Has this URI been visited by the agent ?openConnection
(URL url) Opens a connection for the given URL.void
setLoadingTime
(long time) Set the time at which this document was loaded from origin.protected void
setReferrerPolicyHeader
(String policy) Methods inherited from class io.sf.carte.doc.dom4j.XHTMLDocument
addStyleSheet, createElement, createElementNS, createErrorHandler, elementID, enableStyleSheetsForSet, getBaseURI, getBaseURL, getCanvas, getCompatMode, getComplianceMode, getDocumentElement, getDocumentFactory, getDocumentURI, getElementById, getErrorHandler, getFeature, getInputEncoding, getLastStyleSheetSet, getOwnerDocument, getReferrerPolicy, getSelectedStyleSheetSet, getStrictErrorChecking, getStyleDatabase, getStyleSheet, getStyleSheets, getStyleSheetSets, getTargetMedium, getURL, getXmlEncoding, getXmlStandalone, getXmlVersion, hasStyleIssues, isAuthorizedOrigin, isSafeOrigin, normalizeDocument, onMetaAdded, onMetaRemoved, openStream, rebuildCascade, registerProperty, setBaseURL, setDocumentURI, setSelectedStyleSheetSet, setStrictErrorChecking, setTargetMedium, setUserData
Methods inherited from class org.dom4j.dom.DOMDocument
adoptNode, appendChild, cloneNode, compareDocumentPosition, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, getAttributes, getChildNodes, getDoctype, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getFirstChild, getImplementation, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, importNode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, removeChild, renameNode, replaceChild, setNodeValue, setPrefix, setTextContent, setXmlStandalone, setXmlVersion, supports
Methods inherited from class org.dom4j.tree.DefaultDocument
addDocType, addNode, addNode, clearContent, clone, contentList, getDocType, getEntityResolver, getName, getRootElement, getXMLEncoding, processingInstruction, processingInstructions, processingInstructions, removeNode, removeProcessingInstruction, rootElementAdded, setContent, setDocType, setDocumentFactory, setEntityResolver, setName
Methods inherited from class org.dom4j.tree.AbstractDocument
accept, add, addComment, addElement, addElement, addElement, addProcessingInstruction, addProcessingInstruction, asXML, asXPathResult, checkAddElementAllowed, childAdded, childRemoved, getDocument, getNodeType, getPath, getStringValue, getUniquePath, normalize, remove, setRootElement, setXMLEncoding, toString, write
Methods inherited from class org.dom4j.tree.AbstractBranch
add, add, add, addElement, appendContent, content, contentRemoved, createContentList, createContentList, createEmptyList, createResultList, createSingleResultList, elementByID, getContentAsStringValue, getContentAsText, getText, getTextTrim, hasContent, indexOf, invalidNodeTypeAddException, isReadOnly, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructions
Methods inherited from class org.dom4j.tree.AbstractNode
createPattern, createXPath, createXPathFilter, createXPathResult, detach, getNodeTypeName, getParent, getPath, getUniquePath, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.dom4j.Branch
add, add, add, appendContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructions
Methods inherited from interface org.w3c.dom.Document
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode, renameNode, setXmlStandalone, setXmlVersion
Methods inherited from interface org.dom4j.Node
createXPath, detach, getNodeTypeName, getParent, getPath, getText, getUniquePath, hasContent, isReadOnly, matches, numberValueOf, selectNodes, selectNodes, selectNodes, selectObject, selectSingleNode, setDocument, setParent, setText, supportsParent, valueOf
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent
-
Method Details
-
openConnection
Description copied from class:XHTMLDocument
Opens a connection for the given URL.- Specified by:
openConnection
in interfaceCSSDocument
- Overrides:
openConnection
in classXHTMLDocument
- Parameters:
url
- the URL to open a connection to.- Returns:
- the URL connection.
- Throws:
IOException
- if the connection could not be opened.
-
isVisitedURI
Description copied from interface:CSSDocument
Has this URI been visited by the agent ?- Specified by:
isVisitedURI
in interfaceCSSDocument
- Overrides:
isVisitedURI
in classXHTMLDocument
- Parameters:
href
- the URI.- Returns:
true
if visited,false
if not visited or the agent does not support history.
-
setLoadingTime
public void setLoadingTime(long time) Set the time at which this document was loaded from origin.- Parameters:
time
- the time of loading, in milliseconds.
-
setReferrerPolicyHeader
- Overrides:
setReferrerPolicyHeader
in classXHTMLDocument
-