org.archive.wayback.replay.selector
Class PathMatchSelector

java.lang.Object
  extended by org.archive.wayback.replay.selector.BaseReplayRendererSelector
      extended by org.archive.wayback.replay.selector.PathMatchSelector
All Implemented Interfaces:
ReplayRendererSelector

public class PathMatchSelector
extends BaseReplayRendererSelector

Class which allows matching based on: a) one of several strings, any of which being found in the path cause match b) one of several strings, any of which being found in the query cause match c) one of several strings, *ALL* of which being found in the url cause match

Version:
$Date: 2010-10-12 03:01:21 +0700 (Tue, 12 Oct 2010) $, $Revision: 3277 $
Author:
brad

Field Summary
 
Fields inherited from class org.archive.wayback.replay.selector.BaseReplayRendererSelector
maxSize
 
Constructor Summary
PathMatchSelector()
           
 
Method Summary
 boolean canHandle(WaybackRequest wbRequest, CaptureSearchResult result, Resource resource)
           
 List<String> getPathContains()
           
 List<String> getQueryContains()
           
 List<String> getUrlContainsAll()
           
 void setPathContains(List<String> pathContains)
           
 void setQueryContains(List<String> queryContains)
           
 void setUrlContainsAll(List<String> urlContainsAll)
           
 
Methods inherited from class org.archive.wayback.replay.selector.BaseReplayRendererSelector
getMaxSize, getRenderer, isResourceTooBig, setMaxSize, setRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathMatchSelector

public PathMatchSelector()
Method Detail

canHandle

public boolean canHandle(WaybackRequest wbRequest,
                         CaptureSearchResult result,
                         Resource resource)
Specified by:
canHandle in interface ReplayRendererSelector
Specified by:
canHandle in class BaseReplayRendererSelector

getPathContains

public List<String> getPathContains()
Returns:
list of Strings, any of which being found in the path cause a match

setPathContains

public void setPathContains(List<String> pathContains)
Parameters:
pathContains - list of Strings, any of which being found in the path cause a match

getUrlContainsAll

public List<String> getUrlContainsAll()
Returns:
list of Strings, *ALL* of which must be found somewhere in the URL to cause a match

setUrlContainsAll

public void setUrlContainsAll(List<String> urlContainsAll)
Parameters:
urlContainsAll - list of Strings, *ALL* of which must be found somewhere in the URL to cause a match

getQueryContains

public List<String> getQueryContains()
Returns:
list of Strings, any of which being found in the query cause a match

setQueryContains

public void setQueryContains(List<String> queryContains)
Parameters:
queryContains - list of Strings, any of which being found in the query cause a match


Copyright © 2005-2011 Internet Archive. All Rights Reserved.