Class FindPreferredRedirectionHandler
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.FindHandler
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.FindPreferredRedirectionHandler
-
- All Implemented Interfaces:
IDiscoveredLinkHandler,IRedirectionHandler
public class FindPreferredRedirectionHandler extends FindHandler implements IRedirectionHandler
This class is the handler for redirection handling during state transitions
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.regex.PatternredirectionURIPattern-
Fields inherited from class org.apache.manifoldcf.crawler.connectors.webcrawler.FindHandler
parentURI, targetURI
-
-
Constructor Summary
Constructors Constructor Description FindPreferredRedirectionHandler(java.lang.String parentURI, java.util.regex.Pattern redirectionURIPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyOverrides(LoginParameters lp)Apply overridesvoidnoteDiscoveredBase(java.lang.String rawURL)Inform the world of a new base HREF.voidnoteDiscoveredLink(java.lang.String rawURL)Override noteDiscoveredLink-
Methods inherited from class org.apache.manifoldcf.crawler.connectors.webcrawler.FindHandler
getTargetURI
-
-
-
-
Method Detail
-
applyOverrides
public void applyOverrides(LoginParameters lp) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
Apply overrides- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
noteDiscoveredBase
public void noteDiscoveredBase(java.lang.String rawURL) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionDescription copied from interface:IDiscoveredLinkHandlerInform the world of a new base HREF.- Specified by:
noteDiscoveredBasein interfaceIDiscoveredLinkHandler- Overrides:
noteDiscoveredBasein classFindHandler- Parameters:
rawURL- is the new base HREF, in raw form. This may be relative, malformed, etc.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
noteDiscoveredLink
public void noteDiscoveredLink(java.lang.String rawURL) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionOverride noteDiscoveredLink- Specified by:
noteDiscoveredLinkin interfaceIDiscoveredLinkHandler- Overrides:
noteDiscoveredLinkin classFindHandler- Parameters:
rawURL- is the raw discovered url. This may be relative, malformed, or otherwise unsuitable for use until final form is acheived.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
-