geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r722423 - in /geronimo/plugins/tuscany/trunk/samples: ./ helloworld-filter/ helloworld-filter/src/ helloworld-filter/src/main/ helloworld-filter/src/main/java/ helloworld-filter/src/main/java/sample/ helloworld-filter/src/main/webapp/ hello...
Date Tue, 02 Dec 2008 10:49:38 GMT
Author: vamsic007
Date: Tue Dec  2 02:49:37 2008
New Revision: 722423

URL: http://svn.apache.org/viewvc?rev=722423&view=rev
Log:
A helloworld servlet filter sample.

Added:
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml   (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
  (with props)
    geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html  
(with props)
Modified:
    geronimo/plugins/tuscany/trunk/samples/pom.xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml Tue Dec  2 02:49:37 2008
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.plugins</groupId>
+        <artifactId>tuscany-samples</artifactId>
+        <version>1.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>helloworld-filter</artifactId>
+    <name>Geronimo Plugins :: Helloworld Filter sample</name>
+    <packaging>war</packaging>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+            </plugin>
+        </plugins>
+        <finalName>${artifactId}</finalName>
+    </build>
+</project>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 sample;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * Helloworld SCA service interface.
+ * 
+ * @version $Rev$ $Date$
+ */
+@Remotable
+public interface Helloworld {
+
+    String sayHello(String name);
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/Helloworld.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,162 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 sample;
+
+import java.io.IOException;
+import java.io.Writer;
+
+import javax.servlet.Filter;
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+import org.osoa.sca.ComponentContext;
+import org.osoa.sca.annotations.ComponentName;
+import org.osoa.sca.annotations.Context;
+import org.osoa.sca.annotations.Property;
+import org.osoa.sca.annotations.Reference;
+
+/**
+ * A servlet filter that intercepts requests sent to HelloworldServlet.
+ * This filter invokes Helloworld SCA service through injected references.
+ * 
+ * @version $Rev$ $Date$
+ */
+public class HelloworldFilter implements Filter {
+    @Reference
+    protected Helloworld fservice;
+    
+    // Reference name specified in the annotation
+    @Reference(name="fservice2")
+    protected Helloworld ser2;
+    
+    // Reference annotation on setter method
+    private Helloworld ser3;
+    @Reference
+    public void setFservice3(Helloworld service3) {
+        this.ser3 = service3;
+    }
+    
+    /* Test for required */
+    @Reference(required=false)
+    protected Helloworld fservice4;
+    
+    @Reference(required=false)
+    protected Helloworld fservice5;
+    
+    @Reference(required=true)
+    protected Helloworld fservice6;
+
+    @Property
+    protected String fproperty1;
+    
+    // Property name specified in the annotation
+    @Property(name="fproperty2")
+    protected int prop2;
+    
+    // Property annotation on setter method
+    private double prop3;
+    @Property
+    public void setFproperty3(double property3) {
+        this.prop3 = property3;
+    }
+    
+    /* Test for required */
+    @Property(required=false)
+    protected String fproperty4;
+
+    @Property(required=false)
+    protected String fproperty5;
+
+    @Property(required=true)
+    protected String fproperty6;
+    
+    @ComponentName
+    protected String scaComponentName;
+
+    // Annotation on setter method
+    private String scaComponentName1;
+    @ComponentName
+    public void setScaComponentName1(String scaComponentName1) {
+        this.scaComponentName1 = scaComponentName1;
+    }
+    
+    @Context
+    protected ComponentContext componentContext;
+
+    // Annotation on setter method
+    private ComponentContext componentContext1;
+    @Context
+    public void setCompContext(ComponentContext ctx) {
+        componentContext1 = ctx;
+    }
+
+    public void init(FilterConfig filterConfig) throws ServletException {
+    }
+
+    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException {
+        System.out.println(scaComponentName+": HelloworldFilter.doFilter");
+
+        String name = request.getParameter("name");
+        String greeting = fservice.sayHello(name);
+        String greeting2 = ser2.sayHello(name);
+        String greeting3 = ser3.sayHello(name);
+
+        Writer out = response.getWriter();
+        out.write("<html><head><title>Apache Tuscany Helloworld Servlet
Filter sample</title></head><body>");
+        out.write("<h2>Apache Tuscany Helloworld Filter</h2>");
+        out.write("<h3>@Reference</h3>");
+        out.write("<br>Injected into field. <br><strong>Result: </strong>"
+ greeting);
+        out.write("<br><br>Injected into field with reference name specified
in the annotation. <br><strong>Result: </strong>" + greeting2);
+        out.write("<br><br>Injected using setter method. <br><strong>Result:
</strong>" + greeting3);
+        out.write("<br><br>Required is false. Reference is not specified. "+fservice4);
+        out.write("<br><br>Required is false. Reference is specified. "+fservice5);
+        out.write("<br><br>Required is true. Reference is specified. "+fservice6);
+        out.write("<hr>");
+        
+        out.write("<h3>@Property</h3>");
+        out.write("<br>Injected into field: property1 = "+fproperty1);
+        out.write("<br>Injected into field with property name specified in the annotation:
property2 = "+prop2);
+        out.write("<br>Injected using setter method: Property3 = "+prop3);
+        out.write("<br>Required is false. Property is not specified. "+fproperty4);
+        out.write("<br>Required is false. Property is specified. "+fproperty5);
+        out.write("<br>Required is true. Property is specified. "+fproperty6);
+        out.write("<hr>");
+        
+        out.write("<h3>@ComponentName</h3>");
+        out.write("<br>Injected into field: "+scaComponentName);
+        out.write("<br>Injected using setter method: "+scaComponentName1);
+        out.write("<hr>");
+
+        out.write("<h3>@Context</h3>");
+        out.write("<br>Injected into field: "+componentContext);
+        out.write("<br>Injected using setter method: "+componentContext1);
+        out.write("<hr>");
+
+        chain.doFilter(request, response);
+
+        out.write("</body></html>");
+        out.flush();
+    }
+
+    public void destroy() {
+    }
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldFilter.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 sample;
+
+import java.io.IOException;
+import java.io.Writer;
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+/**
+ * A simple helloworld servlet.
+ * 
+ * @version $Rev$ $Date$
+ */
+public class HelloworldSimpleServlet extends HttpServlet {
+    private static final long serialVersionUID = -965770843173226341L;
+
+    @Override
+    protected void service(HttpServletRequest request, HttpServletResponse response) throws
IOException {
+
+        String name = request.getParameter("name");
+        Writer out = response.getWriter();
+        out.write("<h2>Apache Tuscany Helloworld Servlet</h2>");
+        out.write("HelloworldSimpleServlet says, \"Hello "+name+"\"");
+        out.flush();
+    }
+}

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/java/sample/HelloworldSimpleServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  * Licensed to the Apache Software Foundation (ASF) under one
+  * or more contributor license agreements.  See the NOTICE file
+  * distributed with this work for additional information
+  * regarding copyright ownership.  The ASF licenses this file
+  * to you 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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
+  <environment>
+    <moduleId>
+      <groupId>test</groupId>
+      <artifactId>helloworld-filter</artifactId>
+      <version>2.0</version>
+      <type>car</type>
+    </moduleId>
+    <dependencies/>
+    <hidden-classes/>
+    <non-overridable-classes/>    
+  </environment>
+  <context-root>helloworld-filter</context-root>
+</web-app>
\ No newline at end of file

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           targetNamespace="http://sample"
+           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+           name="helloworld-filter">
+
+    <component name="helloworldFilterComponent">
+        <implementation.web web-uri="helloworld-filter.war"/>
+
+        <reference name="fservice" target="HelloworldComponent"/>
+        <reference name="fservice2" target="HelloworldTeluguComponent"/>
+        <reference name="Fservice3" target="HelloworldFrenchComponent"/>
+        <!-- <reference name="fservice4" target="HelloworldComponent"/> -->
+        <reference name="fservice5" target="HelloworldComponent"/>
+        <reference name="fservice6" target="HelloworldComponent"/>
+        
+        <property name="fproperty1" type="xsd:string">FProp1</property>
+        <property name="fproperty2" type="xsd:int">700</property>
+        <property name="Fproperty3" type="xsd:double">0.007</property>
+        <!-- <property name="fproperty4" type="xsd:string">FProp4</property>
-->
+        <property name="fproperty5" type="xsd:string">FProp5</property>
+        <property name="fproperty6" type="xsd:string">FProp6</property>
+    </component>
+</composite>
+

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
(added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
Tue Dec  2 02:49:37 2008
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  * Licensed to the Apache Software Foundation (ASF) under one
+  * or more contributor license agreements.  See the NOTICE file
+  * distributed with this work for additional information
+  * regarding copyright ownership.  The ASF licenses this file
+  * to you 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>Helloworld Servlet Filter sample</display-name>
+
+  <servlet>
+     <servlet-name>HelloworldServlet</servlet-name>
+     <servlet-class>sample.HelloworldSimpleServlet</servlet-class>
+  </servlet>
+  
+  <filter>
+      <filter-name>HelloworldFilter</filter-name>
+      <filter-class>sample.HelloworldFilter</filter-class>
+  </filter>
+
+  <servlet-mapping>
+     <servlet-name>HelloworldServlet</servlet-name>
+     <url-pattern>/HelloworldServlet</url-pattern>
+  </servlet-mapping>
+  
+  <filter-mapping>
+      <filter-name>HelloworldFilter</filter-name>
+      <url-pattern>/HelloworldServlet</url-pattern>
+  </filter-mapping>
+
+  <welcome-file-list id="WelcomeFileList">
+    <welcome-file>hello.html</welcome-file>
+  </welcome-file-list>
+
+</web-app>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html?rev=722423&view=auto
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html (added)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html Tue
Dec  2 02:49:37 2008
@@ -0,0 +1,46 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.
+-->
+<html>
+
+<head>
+<title>Apache Tuscany Helloworld Servlet Filter sample</title>
+</head>
+
+<body>
+
+<h2>Apache Tuscany Helloworld Servlet Filter sample</h2>
+
+<form action="HelloworldServlet" method="post">
+    <table>
+        <tr>
+            <td>Enter your name:</td>
+            <td>
+                <input type="text" name="name" width="10">
+            </td>
+        </tr>
+        <tr>
+            <td align="left" colspan="2">
+                <button name="submit" type="submit">Say hello</button>
+            </td>
+        </tr>
+    </table>
+</form>
+
+</body>
+</html>

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/plugins/tuscany/trunk/samples/helloworld-filter/src/main/webapp/hello.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Modified: geronimo/plugins/tuscany/trunk/samples/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/pom.xml?rev=722423&r1=722422&r2=722423&view=diff
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/pom.xml (original)
+++ geronimo/plugins/tuscany/trunk/samples/pom.xml Tue Dec  2 02:49:37 2008
@@ -43,6 +43,7 @@
                 <module>helloworld-service-delegate</module>
                 <module>helloworld-jsp</module>
                 <module>helloworld-servlet</module>
+                <module>helloworld-filter</module>
                 <module>helloworld-ejb</module>
                 <module>helloworld-web</module>
                 <module>helloworld-mdb-ejb</module>



Mime
View raw message