[freenet-cvs] r15818 - trunk/freenet/src/freenet/pluginmanager

bombe at freenetproject.org bombe at freenetproject.org
Mon Nov 19 10:24:46 UTC 2007


Author: bombe
Date: 2007-11-19 10:24:46 +0000 (Mon, 19 Nov 2007)
New Revision: 15818

Modified:
   trunk/freenet/src/freenet/pluginmanager/RedirectPluginHTTPException.java
Log:
add new constructor and deprecate the old one

Modified: trunk/freenet/src/freenet/pluginmanager/RedirectPluginHTTPException.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/RedirectPluginHTTPException.java	2007-11-18 22:01:44 UTC (rev 15817)
+++ trunk/freenet/src/freenet/pluginmanager/RedirectPluginHTTPException.java	2007-11-19 10:24:46 UTC (rev 15818)
@@ -14,8 +14,34 @@
 	public static final short code = 302; // Found
 	public final String newLocation;
 
+	/**
+	 * Creates a new redirect exception.
+	 * 
+	 * @param message
+	 *            The message to put in the reply
+	 * @param newLocation
+	 *            The location to redirect to
+	 */
+	public RedirectPluginHTTPException(String message, String newLocation) {
+		super(message, null);
+		this.newLocation = newLocation;
+	}
+
+	/**
+	 * Creates a new redirect exception.
+	 * 
+	 * @param message
+	 *            The message to put in the reply
+	 * @param location
+	 *            unsued
+	 * @param newLocation
+	 *            The location to redirect to
+	 * @deprecated use {@link #RedirectPluginHTTPException(String, String)}
+	 *             instead
+	 */
 	public RedirectPluginHTTPException(String message, String location, String newLocation) {
 		super(message, location);
 		this.newLocation = newLocation;
 	}
+
 }




More information about the cvs mailing list