You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by me...@apache.org on 2007/03/17 15:09:24 UTC
svn commit: r519319 -
/incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java
Author: meerajk
Date: Sat Mar 17 07:09:23 2007
New Revision: 519319
URL: http://svn.apache.org/viewvc?view=rev&rev=519319
Log:
Added servlet mapping.
Added:
incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java (with props)
Added: incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java?view=auto&rev=519319
==============================================================================
--- incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java (added)
+++ incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java Sat Mar 17 07:09:23 2007
@@ -0,0 +1,69 @@
+/*
+ * 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.service.jetty;
+
+import javax.servlet.Servlet;
+
+/**
+ * Class that maps a path spec to a servlet.
+ *
+ * @version $Revision$ $Date$
+ *
+ */
+public class ServletMapping {
+
+ // Path specification
+ private String pathSpec;
+
+ // Servlet that handles the path spec
+ private Servlet servlet;
+
+ /**
+ * Gets the path specification.
+ * @return Path specification.
+ */
+ public String getPathSpec() {
+ return pathSpec;
+ }
+
+ /**
+ * Sets the path specification.
+ * @param pathSpec Path specification.
+ */
+ public void setPathSpec(String pathSpec) {
+ this.pathSpec = pathSpec;
+ }
+
+ /**
+ * Gets the servlet that handles the path.
+ * @return Servlet that handles the path.
+ */
+ public Servlet getServlet() {
+ return servlet;
+ }
+
+ /**
+ * Sets the servlet that handles the path.
+ * @param servlet The servlet that handles the path.
+ */
+ public void setServlet(Servlet servlet) {
+ this.servlet = servlet;
+ }
+
+}
Propchange: incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/tuscany/java/sca/services/transports/http.jetty/src/main/java/org/apache/tuscany/service/jetty/ServletMapping.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