portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r509870 - /portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java
Date Wed, 21 Feb 2007 02:59:56 GMT
Author: ate
Date: Tue Feb 20 18:59:56 2007
New Revision: 509870

URL: http://svn.apache.org/viewvc?view=rev&rev=509870
Log:
Code and slight performance improvement

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java?view=diff&rev=509870&r1=509869&r2=509870
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/container/url/impl/AbstractPortalURL.java
Tue Feb 20 18:59:56 2007
@@ -47,7 +47,7 @@
     protected NavigationalState navState;
     protected BasePortalURL base = null;
     
-    protected boolean relativeOnly;
+    protected static Boolean relativeOnly;
     protected String contextPath;
     protected String basePath;
     protected String path;
@@ -71,8 +71,11 @@
                 portalContext.getConfigurationProperty("portalurl.navigationalstate.parameter.name",

                         DEFAULT_NAV_STATE_PARAMETER);
         }
-        this.navState = navState;        
-        relativeOnly = Boolean.valueOf(portalContext.getConfigurationProperty("portalurl.relative.only",
"false")).booleanValue();
+        this.navState = navState;
+        if ( relativeOnly == null )
+        {
+            relativeOnly = portalContext.getConfiguration().getBoolean("portalurl.relative.only",
Boolean.FALSE);
+        }
     }
     
     
@@ -90,7 +93,7 @@
     
     public boolean isRelativeOnly()
     {
-        return relativeOnly;
+        return relativeOnly.booleanValue();
     }
     
     public static String getNavigationalStateParameterName()
@@ -134,7 +137,7 @@
             base.setServerPort(request.getServerPort());
             base.setSecure(request.isSecure());            
         }
-        if ( relativeOnly )
+        if ( relativeOnly.booleanValue() )
         {
             this.secureBaseURL = this.nonSecureBaseURL = "";
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message