Class WebcrawlerConnector.OuterContextClass
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.WebcrawlerConnector.OuterContextClass
-
- Enclosing class:
- WebcrawlerConnector
protected class WebcrawlerConnector.OuterContextClass extends org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
This class handles the outermost XML context for the feed document.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
documentURI
The document uriprotected IXMLHandler
handler
The link handlerprotected int
outerTagCount
Keep track of the number of valid feed signals we saw
-
Constructor Summary
Constructors Constructor Description OuterContextClass(org.apache.manifoldcf.connectorcommon.fuzzyml.XMLFuzzyHierarchicalParseState theStream, java.lang.String documentURI, IXMLHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
beginTag(java.lang.String namespace, java.lang.String localName, java.lang.String qName, java.util.Map<java.lang.String,java.lang.String> atts)
Handle the tag beginning to set the correct second-level parsing contextvoid
checkIfValidFeed()
Check if feed was validprotected void
endTag()
Handle the tag ending
-
-
-
Field Detail
-
outerTagCount
protected int outerTagCount
Keep track of the number of valid feed signals we saw
-
documentURI
protected java.lang.String documentURI
The document uri
-
handler
protected IXMLHandler handler
The link handler
-
-
Constructor Detail
-
OuterContextClass
public OuterContextClass(org.apache.manifoldcf.connectorcommon.fuzzyml.XMLFuzzyHierarchicalParseState theStream, java.lang.String documentURI, IXMLHandler handler)
-
-
Method Detail
-
checkIfValidFeed
public void checkIfValidFeed()
Check if feed was valid
-
beginTag
protected org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext beginTag(java.lang.String namespace, java.lang.String localName, java.lang.String qName, java.util.Map<java.lang.String,java.lang.String> atts) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Handle the tag beginning to set the correct second-level parsing context- Overrides:
beginTag
in classorg.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
endTag
protected void endTag() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Handle the tag ending- Overrides:
endTag
in classorg.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-