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_URIFields inherited from class org.dom4j.tree.AbstractDocument
encodingFields inherited from class org.dom4j.tree.AbstractBranch
DEFAULT_CONTENT_LIST_SIZEFields inherited from class org.dom4j.tree.AbstractNode
NODE_TYPE_NAMESFields 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_NODEFields 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 TypeMethodDescriptionbooleanisVisitedURI(String href) Has this URI been visited by the agent ?openConnection(URL url) Opens a connection for the given URL.voidsetLoadingTime(long time) Set the time at which this document was loaded from origin.protected voidsetReferrerPolicyHeader(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, getXmlEncoding, getXmlStandalone, getXmlVersion, hasStyleIssues, isAuthorizedOrigin, isSafeOrigin, normalizeDocument, onMetaAdded, onMetaRemoved, openStream, rebuildCascade, registerProperty, setBaseURL, setDocumentURI, setSelectedStyleSheetSet, setStrictErrorChecking, setTargetMedium, setUserDataMethods 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, supportsMethods 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, setNameMethods 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, writeMethods 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, setProcessingInstructionsMethods 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, valueOfMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.dom4j.Branch
add, add, add, appendContent, content, elementByID, indexOf, node, nodeCount, nodeIterator, remove, remove, remove, setProcessingInstructionsMethods inherited from interface io.sf.carte.doc.style.css.CSSDocument
getURLMethods inherited from interface org.w3c.dom.Document
adoptNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createEntityReference, createProcessingInstruction, createTextNode, getDoctype, getDomConfig, getElementsByTagName, getElementsByTagNameNS, getImplementation, importNode, renameNode, setXmlStandalone, setXmlVersionMethods 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, valueOfMethods 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:XHTMLDocumentOpens a connection for the given URL.- Specified by:
openConnectionin interfaceCSSDocument- Overrides:
openConnectionin 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:CSSDocumentHas this URI been visited by the agent ?- Specified by:
isVisitedURIin interfaceCSSDocument- Overrides:
isVisitedURIin classXHTMLDocument- Parameters:
href- the URI.- Returns:
trueif visited,falseif 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:
setReferrerPolicyHeaderin classXHTMLDocument
-