From: <bra...@us...> - 2009-10-28 03:40:28
|
Revision: 2859 http://archive-access.svn.sourceforge.net/archive-access/?rev=2859&view=rev Author: bradtofel Date: 2009-10-28 03:40:14 +0000 (Wed, 28 Oct 2009) Log Message: ----------- FEATURE: added exactHostMatch boolean member, which causes only results matching the exact host request to be returned. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/AccessPoint.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/AccessPoint.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/AccessPoint.java 2009-10-28 03:38:26 UTC (rev 2858) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/webapp/AccessPoint.java 2009-10-28 03:40:14 UTC (rev 2859) @@ -25,6 +25,7 @@ package org.archive.wayback.webapp; import java.io.IOException; +import java.util.List; import java.util.Locale; import java.util.Properties; import java.util.logging.Logger; @@ -82,6 +83,7 @@ private boolean useServerName = false; private boolean useAnchorWindow = false; private boolean exactSchemeMatch = true; + private boolean exactHostMatch = false; private int contextPort = 0; private String contextName = null; @@ -97,7 +99,25 @@ private BooleanOperator<WaybackRequest> authentication = null; private String urlRoot = null; private Locale locale = null; + private List<String> filePatterns = null; + private List<String> filePrefixes = null; + + public List<String> getFilePatterns() { + return filePatterns; + } + public void setFilePatterns(List<String> filePatterns) { + this.filePatterns = filePatterns; + } + + public List<String> getFilePrefixes() { + return filePrefixes; + } + + public void setFilePrefixes(List<String> filePrefixes) { + this.filePrefixes = filePrefixes; + } + /** * @return the contextName */ @@ -346,6 +366,7 @@ } else { + wbRequest.setExactHost(exactHostMatch); handleQuery(wbRequest,httpRequest,httpResponse); } } else { @@ -575,4 +596,18 @@ public void setUrlRoot(String urlRoot) { this.urlRoot = urlRoot; } + + /** + * @return the exactHostMatch + */ + public boolean isExactHostMatch() { + return exactHostMatch; + } + + /** + * @param exactHostMatch the exactHostMatch to set + */ + public void setExactHostMatch(boolean exactHostMatch) { + this.exactHostMatch = exactHostMatch; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |