Author: julien(a)jboss.com
Date: 2007-03-30 18:19:37 -0400 (Fri, 30 Mar 2007)
New Revision: 6888
Modified:
trunk/server/src/main/org/jboss/portal/server/servlet/PortalServlet.java
Log:
- inline trivial method in portal servlet
- removed useless import
Modified: trunk/server/src/main/org/jboss/portal/server/servlet/PortalServlet.java
===================================================================
--- trunk/server/src/main/org/jboss/portal/server/servlet/PortalServlet.java 2007-03-30
21:03:45 UTC (rev 6887)
+++ trunk/server/src/main/org/jboss/portal/server/servlet/PortalServlet.java 2007-03-30
22:19:37 UTC (rev 6888)
@@ -55,7 +55,6 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
-import java.util.StringTokenizer;
/**
* The main servlet of the portal. This servlet must be properly configured with the
servlet mapping style it is
@@ -73,9 +72,6 @@
/** . */
private static final int POST_METHOD = 1;
- /** The serialVersionUID */
- private static final long serialVersionUID = -4311718750030972662L;
-
/** Describes a default servlet mapping. */
private static final int DEFAULT_SERVLET_MAPPING = 0;
@@ -278,7 +274,7 @@
portalContextPath = URLTools.decodeXWWWFormURL(portalContextPath);
//
- URLContext urlContext = parseURLContext(req);
+ URLContext urlContext = URLContext.newInstance(req.isSecure(), req.getRemoteUser()
!= null);
// ***************
// ***************
@@ -433,10 +429,4 @@
return false;
}
}
-
-
- private URLContext parseURLContext(HttpServletRequest req)
- {
- return URLContext.newInstance(req.isSecure(), req.getRemoteUser() != null);
- }
}