From: <bra...@us...> - 2007-08-18 00:52:21
|
Revision: 1904 http://archive-access.svn.sourceforge.net/archive-access/?rev=1904&view=rev Author: bradtofel Date: 2007-08-17 17:52:02 -0700 (Fri, 17 Aug 2007) Log Message: ----------- TWEAK: removed all references to the unused BetterRequestException. Perhaps it will come back, but for now it's not needed. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2007-08-18 00:49:33 UTC (rev 1903) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/core/WaybackRequest.java 2007-08-18 00:52:02 UTC (rev 1904) @@ -36,7 +36,6 @@ import org.archive.net.UURI; import org.archive.net.UURIFactory; import org.archive.wayback.WaybackConstants; -import org.archive.wayback.exception.BetterRequestException; import org.archive.wayback.requestparser.OpenSearchRequestParser; import org.archive.wayback.util.StringFormatter; import org.archive.wayback.webapp.WaybackContext; @@ -56,8 +55,6 @@ private String contextPrefix = null; private String serverPrefix = null; - - private String betterRequestURI = null; private WaybackContext context = null; private HashMap<String,String> filters = new HashMap<String,String>(); @@ -163,28 +160,6 @@ } /** - * sets the better requestURI property. If set, a subsequent call to - * checkBetterRequest() will throw a BetterRequestException with URI set to - * the argument passed here. - * - * @param betterRequestURI - */ - public void setBetterRequestURI(String betterRequestURI) { - this.betterRequestURI = betterRequestURI; - } - - /** - * possibly throws a BetterRequestException if there is a better way - * for the client to make the given request. - * @throws BetterRequestException - */ - public void checkBetterRequest() throws BetterRequestException { - if(betterRequestURI != null) { - throw new BetterRequestException(betterRequestURI); - } - } - - /** * Set the Locale for the request, which impacts UI Strings * @param l */ @@ -390,10 +365,7 @@ wbRequest.contextPrefix = contextPrefix; wbRequest.serverPrefix = serverPrefix; - - wbRequest.betterRequestURI = betterRequestURI; - wbRequest.formatter = formatter; wbRequest.filters = new HashMap<String,String>(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |