portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject svn commit: r190473 - /portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml
Date Mon, 13 Jun 2005 18:11:29 GMT
Author: weaver
Date: Mon Jun 13 11:11:29 2005
New Revision: 190473

URL: http://svn.apache.org/viewcvs?rev=190473&view=rev
Log:
Added Ajax service filter

Added:
    portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml

Added: portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml?rev=190473&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/web.xml Mon Jun 13 11:11:29 2005
@@ -0,0 +1,272 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+Copyright 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.
+-->
+<!DOCTYPE web-app
+  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+  "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+  <display-name>Jetspeed-2 Enterprise Portal</display-name>	
+  <filter>
+    <filter-name>ContentServer</filter-name>
+    <filter-class>org.apache.jetspeed.contentserver.ContentFilter</filter-class>
+     <init-param>
+        <param-name>content.directory</param-name>
+        <param-value>
+           WEB-INF/decorations
+        </param-value>
+    </init-param>
+     <init-param>
+        <param-name>url.hint</param-name>
+        <param-value>
+           content/
+        </param-value>
+    </init-param>
+    <init-param>
+        <param-name>use.caching</param-name>
+        <param-value>
+           false
+        </param-value>
+    </init-param>
+  </filter>
+  
+  <filter>
+    <filter-name>AJAXFilter</filter-name>
+    <filter-class>org.apache.jetspeed.ajax.AJAXFilter</filter-class>   
+  </filter>
+  
+  <filter-mapping>
+    <filter-name>AJAXFilter</filter-name>
+    <url-pattern>*.ajax</url-pattern>    
+  </filter-mapping>  
+
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.gif</url-pattern>    
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.jpg</url-pattern>
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.jpeg</url-pattern>
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.png</url-pattern>
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.js</url-pattern>
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.html</url-pattern>    
+  </filter-mapping>
+  <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.ico</url-pattern>    
+ </filter-mapping>
+ <filter-mapping>
+    <filter-name>ContentServer</filter-name>
+    <url-pattern>*.css</url-pattern>    
+  </filter-mapping>
+	
+
+  <servlet>
+    <servlet-name>jetspeed</servlet-name>
+    <servlet-class>org.apache.jetspeed.engine.JetspeedServlet</servlet-class>
+    <init-param>
+      <param-name>properties</param-name>
+      <param-value>/WEB-INF/conf/jetspeed.properties</param-value>
+    </init-param>
+    <init-param>
+      <param-name>configuration</param-name>
+      <param-value>/WEB-INF/conf/jetspeed-configuration.xml</param-value>
+    </init-param>
+    <init-param>
+      <param-name>applicationRoot</param-name>
+      <param-value>webContext</param-value>
+    </init-param>
+    <!-- To enable SpringEngine, uncomment this param and comment out the
+    	 PicoEngine one.    	 -->
+    <init-param>
+      <param-name>engine</param-name>
+      <param-value>org.apache.jetspeed.engine.SpringEngine</param-value>
+    </init-param>
+
+	<!--
+    <init-param>
+      <param-name>engine</param-name>
+      <param-value>org.apache.jetspeed.engine.PicoEngine</param-value>
+    </init-param>
+	-->
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  	<!-- Define Velocity template compiler -->
+	<servlet>
+		<servlet-name>velocity</servlet-name>
+		<servlet-class>org.apache.jetspeed.velocity.JetspeedVelocityViewServlet</servlet-class>
+		<init-param>
+			<param-name>org.apache.velocity.toolbox</param-name>
+			<param-value>/WEB-INF/toolbox.xml</param-value>
+		</init-param>
+		<init-param>
+			<param-name>org.apache.velocity.properties</param-name>
+			<param-value>/WEB-INF/velocity.properties</param-value>
+		</init-param>
+		<init-param>
+			<param-name>org.apache.jetspeed.cache.size</param-name>
+			<param-value>50</param-value>
+		</init-param>
+		<init-param>
+			<param-name>org.apache.jetspeed.cache.validation.interval</param-name>
+			<param-value>10000</param-value>
+		</init-param>
+		<load-on-startup>10</load-on-startup>
+	</servlet>
+
+  <servlet>
+    <servlet-name>LoginProxyServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.login.LoginProxyServlet</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>LoginServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.login.LoginServlet</servlet-class>
+  </servlet>
+    
+  <servlet>
+    <servlet-name>LoginErrorServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.login.LoginErrorServlet</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>LoginRedirectorServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.login.LoginRedirectorServlet</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>LogoutServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.login.LogoutServlet</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>ManagerServlet</servlet-name>
+    <servlet-class>org.apache.jetspeed.manager.ManagerServlet</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+       <servlet-name>
+          jetspeed
+       </servlet-name>
+       <url-pattern>
+         /portal/*
+       </url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+       <servlet-name>
+          jetspeed
+       </servlet-name>
+       <url-pattern>
+         /jetspeed/*
+       </url-pattern>
+    </servlet-mapping>
+    
+    <!-- Map *.vm files to Velocity  -->
+	<servlet-mapping>
+		<servlet-name>velocity</servlet-name>
+		<url-pattern>*.vm</url-pattern>
+	</servlet-mapping>	
+
+    <servlet-mapping>
+        <servlet-name>LoginProxyServlet</servlet-name>
+        <url-pattern>/login/proxy</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>LoginServlet</servlet-name>
+        <url-pattern>/login/login</url-pattern>
+    </servlet-mapping>
+    
+    <servlet-mapping>
+        <servlet-name>LoginErrorServlet</servlet-name>
+        <url-pattern>/login/error</url-pattern>
+    </servlet-mapping>
+    
+    <servlet-mapping>
+        <servlet-name>LoginRedirectorServlet</servlet-name>
+        <url-pattern>/login/redirector</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>LogoutServlet</servlet-name>
+        <url-pattern>/login/logout</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>ManagerServlet</servlet-name>
+        <url-pattern>/manager/*</url-pattern>
+    </servlet-mapping>
+
+  <!-- The Usual Welcome File List -->
+  <welcome-file-list>
+    <welcome-file>index.jsp</welcome-file>
+  </welcome-file-list>
+  
+  <!-- JNDI Db resource -->
+   <resource-ref>
+      <description>DB Connection</description>
+      <res-ref-name>jdbc/jetspeed</res-ref-name>
+      <res-type>javax.sql.DataSource</res-type>
+      <res-auth>Container</res-auth>
+  </resource-ref>
+
+  <!-- Protect LogInRedirectory.jsp.  This will require a login when called -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>Login</web-resource-name>
+      <url-pattern>/login/redirector</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>*</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <!--  securing the ManagerServlet -->
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>Manager</web-resource-name>
+      <url-pattern>/manager</url-pattern>
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>admin</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <!-- Login configuration uses form-based authentication -->
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <realm-name>Jetspeed</realm-name>
+    <form-login-config>
+      <form-login-page>/login/login</form-login-page>
+      <form-error-page>/login/error</form-error-page>
+    </form-login-config>
+  </login-config>
+
+</web-app>



---------------------------------------------------------------------
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