org.apache.manifoldcf.crawler.connectors.rss
Class RSSConnector.OuterContextClass

java.lang.Object
  extended by org.apache.manifoldcf.agents.common.XMLContext
      extended by org.apache.manifoldcf.crawler.connectors.rss.RSSConnector.OuterContextClass
Enclosing class:
RSSConnector

protected class RSSConnector.OuterContextClass
extends org.apache.manifoldcf.agents.common.XMLContext

This class handles the outermost XML context for the feed document.


Field Summary
protected  org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities
          Activities interface
protected  java.lang.String documentIdentifier
          The document identifier
protected  RSSConnector.Filter filter
          Filter
protected  int outerTagCount
          Keep track of the number of valid feed signals we saw
protected  boolean rescanTimeSet
          Flag indicating the the rescan time was set for this feed
 
Fields inherited from class org.apache.manifoldcf.agents.common.XMLContext
localname, namespaceURI, previousContext, qname, theseAttributes, theStream
 
Constructor Summary
RSSConnector.OuterContextClass(org.apache.manifoldcf.agents.common.XMLStream theStream, java.lang.String documentIdentifier, org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities, RSSConnector.Filter filter)
           
 
Method Summary
protected  org.apache.manifoldcf.agents.common.XMLContext beginTag(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          Handle the tag beginning to set the correct second-level parsing context
 void checkIfValidFeed()
          Check if feed was valid
protected  void endTag()
          Handle the tag ending
 void setDefaultRescanTimeIfNeeded()
          Check if the rescan flag was set or not, and if not, make sure it gets set properly
 
Methods inherited from class org.apache.manifoldcf.agents.common.XMLContext
characters, cleanup, endDocument, endElement, getAttribute, getLocalname, getNamespaceURI, getQname, startDocument, startElement, tagCleanup, tagContents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

RSSConnector.OuterContextClass

public RSSConnector.OuterContextClass(org.apache.manifoldcf.agents.common.XMLStream 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.ManifoldCFException
Check 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.agents.common.XMLContext beginTag(java.lang.String namespaceURI,
                                                                  java.lang.String localName,
                                                                  java.lang.String qName,
                                                                  org.xml.sax.Attributes atts)
                                                           throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                                                                  org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Handle the tag beginning to set the correct second-level parsing context

Overrides:
beginTag in class org.apache.manifoldcf.agents.common.XMLContext
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption

endTag

protected void endTag()
               throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
                      org.apache.manifoldcf.agents.interfaces.ServiceInterruption
Handle the tag ending

Overrides:
endTag in class org.apache.manifoldcf.agents.common.XMLContext
Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption