You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2006/08/19 11:16:26 UTC
svn commit: r432818 - in /incubator/tuscany/java/sca/host-api: pom.xml
src/main/java/org/apache/tuscany/host/servlet/
src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java
Author: antelder
Date: Sat Aug 19 02:16:22 2006
New Revision: 432818
URL: http://svn.apache.org/viewvc?rev=432818&view=rev
Log:
Add a ServletRequestInjector interface for use by the new Tuscany servlet
Added:
incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/
incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java (with props)
Modified:
incubator/tuscany/java/sca/host-api/pom.xml
Modified: incubator/tuscany/java/sca/host-api/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/host-api/pom.xml?rev=432818&r1=432817&r2=432818&view=diff
==============================================================================
--- incubator/tuscany/java/sca/host-api/pom.xml (original)
+++ incubator/tuscany/java/sca/host-api/pom.xml Sat Aug 19 02:16:22 2006
@@ -37,6 +37,12 @@
<scope>compile</scope>
</dependency>
<dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
Added: incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java?rev=432818&view=auto
==============================================================================
--- incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java (added)
+++ incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java Sat Aug 19 02:16:22 2006
@@ -0,0 +1,42 @@
+/*
+ * 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 org.apache.tuscany.host.servlet;
+
+import java.io.IOException;
+
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+/**
+ * Interface to a system component that dispatches servlet requests to the Tuscany runtime
+ */
+public interface ServletRequestInjector {
+
+ /**
+ * Dispatch servlet requests to the Tuscany runtime
+ *
+ * @param req the ServletRequest object that contains the request the client made of the servlet
+ * @param res the ServletResponse object that contains the response the servlet returns to the client
+ * @throws ServletException if the request cannot be handled
+ * @throws IOException if an input or output error occurs while handling the request
+ */
+ public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;
+
+}
Propchange: incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/host-api/src/main/java/org/apache/tuscany/host/servlet/ServletRequestInjector.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org