Class RSSConnector.OuterContextClass
- java.lang.Object
-
- org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext
-
- org.apache.manifoldcf.crawler.connectors.rss.RSSConnector.OuterContextClass
-
- Enclosing class:
- RSSConnector
protected class RSSConnector.OuterContextClass extends org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContextThis class handles the outermost XML context for the feed document.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.manifoldcf.crawler.interfaces.IProcessActivityactivitiesActivities interfaceprotected java.lang.StringdocumentIdentifierThe document identifierprotected RSSConnector.FilterfilterFilterprotected intouterTagCountKeep track of the number of valid feed signals we sawprotected booleanrescanTimeSetFlag indicating the the rescan time was set for this feed
-
Constructor Summary
Constructors Constructor Description OuterContextClass(org.apache.manifoldcf.connectorcommon.fuzzyml.XMLFuzzyHierarchicalParseState theStream, java.lang.String documentIdentifier, org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities, RSSConnector.Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContextbeginTag(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 contextvoidcheckIfValidFeed()Check if feed was validprotected voidendTag()Handle the tag endingvoidsetDefaultRescanTimeIfNeeded()Check if the rescan flag was set or not, and if not, make sure it gets set properly
-
-
-
Field Detail
-
outerTagCount
protected int outerTagCount
Keep track of the number of valid feed signals we saw
-
documentIdentifier
protected java.lang.String documentIdentifier
The document identifier
-
activities
protected org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities
Activities interface
-
filter
protected RSSConnector.Filter filter
Filter
-
rescanTimeSet
protected boolean rescanTimeSet
Flag indicating the the rescan time was set for this feed
-
-
Constructor Detail
-
OuterContextClass
public OuterContextClass(org.apache.manifoldcf.connectorcommon.fuzzyml.XMLFuzzyHierarchicalParseState theStream, java.lang.String documentIdentifier, org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities, RSSConnector.Filter filter)
-
-
Method Detail
-
checkIfValidFeed
public void checkIfValidFeed()
Check if feed was valid
-
setDefaultRescanTimeIfNeeded
public void setDefaultRescanTimeIfNeeded() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionCheck if the rescan flag was set or not, and if not, make sure it gets set properly- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
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.ManifoldCFExceptionHandle the tag beginning to set the correct second-level parsing context- Overrides:
beginTagin classorg.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
endTag
protected void endTag() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionHandle the tag ending- Overrides:
endTagin classorg.apache.manifoldcf.connectorcommon.fuzzyml.XMLParsingContext- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-