You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2009/03/03 01:18:22 UTC

svn commit: r749486 - /wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java

Author: knopp
Date: Tue Mar  3 00:18:22 2009
New Revision: 749486

URL: http://svn.apache.org/viewvc?rev=749486&view=rev
Log: (empty)

Modified:
    wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java

Modified: wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java
URL: http://svn.apache.org/viewvc/wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java?rev=749486&r1=749485&r2=749486&view=diff
==============================================================================
--- wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java (original)
+++ wicket/sandbox/knopp/experimental/wicket/src/main/java/org/apache/_wicket/protocol/http/WicketFilter.java Tue Mar  3 00:18:22 2009
@@ -64,16 +64,11 @@
  */
 public class WicketFilter implements Filter
 {
-
-	public void destroy()
-	{
-		if (webApplication != null)
-		{
-			webApplication.destroy();
-			webApplication = null;
-		}
-	}
-
+	/**
+	 * The name of the root path parameter that specifies the root dir of the app.
+	 */
+	public static final String FILTER_MAPPING_PARAM = "filterMappingUrlPattern";
+	
 	/**
 	 * Checks if the request is for home page and lacks trailing slash. If necessary redirects to
 	 * URL with trailing slash.
@@ -153,6 +148,7 @@
 
 	public void init(FilterConfig filterConfig) throws ServletException
 	{
+		// TODO: Factory
 		webApplication = new WebApplication(filterConfig.getFilterName());
 		this.filterConfig = filterConfig;
 		initFilterPath();
@@ -332,7 +328,15 @@
 		return result.substring(1, result.length() - 1);
 	}
 
-	private static final Logger log = LoggerFactory.getLogger(WicketFilter.class);
+	public void destroy()
+	{
+		if (webApplication != null)
+		{
+			webApplication.destroy();
+			webApplication = null;
+		}
+	}
 
-	public static final String FILTER_MAPPING_PARAM = "filterMappingUrlPattern";
+	
+	private static final Logger log = LoggerFactory.getLogger(WicketFilter.class);
 }