You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/01/11 02:04:39 UTC
svn commit: r367857 - in
/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url:
BasePortalURL.java PortalURL.java
Author: taylor
Date: Tue Jan 10 17:04:37 2006
New Revision: 367857
URL: http://svn.apache.org/viewcvs?rev=367857&view=rev
Log:
http://issues.apache.org/jira/browse/JS2-466
This issue adds two new features:
1. Production Configuration via an external configuration file
This configuration file allows administrators to change production configuration properties
outside of the portal without moving the entire assembly directory out of the portal
see jetspeed-production.properties and jetspeed-production.xml
2. Hard-code base URL
Allows the Base URL to be hard-coded by a system administrator
Base URLs contain the isSecure flag, server name, server port, and server scheme.
This abstraction was necessary for wiring the entire portal's base URL via another
mechanism than retrieving from the servlet request.
Both of these features are turned OFF by default.
To enable them, see portal-url-generation.xml
Added:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/BasePortalURL.java
Modified:
portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/PortalURL.java
Added: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/BasePortalURL.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/BasePortalURL.java?rev=367857&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/BasePortalURL.java (added)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/BasePortalURL.java Tue Jan 10 17:04:37 2006
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.jetspeed.container.url;
+
+/**
+ * <p>
+ * BasePortalURL defines the interface for manipulating Base URLs in a portal.
+ * Base URLs contain the isSecure flag, server name, server port, and server scheme.
+ * This abstraction was necessary for wiring the entire portal's base URL via another
+ * mechanism than retrieving from the servlet request.
+ * </p>
+ *
+ * @author <a href="mailto:david@bluesunrise.com">David Sean Taylor</a>
+ * @version $Id: $
+ *
+ */
+public interface BasePortalURL
+{
+ boolean isSecure();
+ void setSecure(boolean secure);
+ String getServerName();
+ void setServerName(String serverName);
+ int getServerPort();
+ void setServerPort(int serverPort);
+ String getServerScheme();
+ void setServerScheme(String serverScheme);
+}
\ No newline at end of file
Modified: portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/PortalURL.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/PortalURL.java?rev=367857&r1=367856&r2=367857&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/PortalURL.java (original)
+++ portals/jetspeed-2/trunk/jetspeed-api/src/java/org/apache/jetspeed/container/url/PortalURL.java Tue Jan 10 17:04:37 2006
@@ -1,8 +1,17 @@
-/**
- * Created on Oct 21, 2003
- *
+/*
+ * Copyright 2000-2001,2004 The Apache Software Foundation.
*
- * @author
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
*/
package org.apache.jetspeed.container.url;
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org