Revision: 2827 http://archive-access.svn.sourceforge.net/archive-access/?rev=2827&view=rev Author: bradtofel Date: 2009-10-23 00:46:31 +0000 (Fri, 23 Oct 2009) Log Message: ----------- FEATURE: added closeMatches List of URLs that might satisfy a users requests Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/ResourceNotInArchiveException.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/ResourceNotInArchiveException.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/ResourceNotInArchiveException.java 2009-10-23 00:44:47 UTC (rev 2826) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/exception/ResourceNotInArchiveException.java 2009-10-23 00:46:31 UTC (rev 2827) @@ -1,5 +1,7 @@ package org.archive.wayback.exception; +import java.util.List; + import javax.servlet.http.HttpServletResponse; /** @@ -14,8 +16,11 @@ */ private static final long serialVersionUID = 1L; protected static final String ID = "resourceNotInArchive"; - /** + * List of alternate string URLs that might get the user what they want. + */ + private List<String> closeMatches = null; + /** * Constructor * * @param message @@ -40,4 +45,16 @@ public int getStatus() { return HttpServletResponse.SC_NOT_FOUND; } + /** + * @return the closeMatches + */ + public List<String> getCloseMatches() { + return closeMatches; + } + /** + * @param closeMatches the closeMatches to set + */ + public void setCloseMatches(List<String> closeMatches) { + this.closeMatches = closeMatches; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |