Author: markt
Date: Tue Mar 8 10:59:58 2016
New Revision: 1734055
URL: http://svn.apache.org/viewvc?rev=1734055&view=rev
Log:
Add new classes to go with r1734054
Added:
tomcat/trunk/java/javax/servlet/http/Mapping.java (with props)
tomcat/trunk/java/javax/servlet/http/MappingMatch.java (with props)
tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java (with
props)
Added: tomcat/trunk/java/javax/servlet/http/Mapping.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/Mapping.java?rev=1734055&view=auto
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/Mapping.java (added)
+++ tomcat/trunk/java/javax/servlet/http/Mapping.java Tue Mar 8 10:59:58 2016
@@ -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 javax.servlet.http;
+
+/**
+ * Represents how the request from which this object was obtained was mapped to
+ * the associated servlet.
+ *
+ * @since 4.0
+ */
+public interface Mapping {
+
+ /**
+ * @return The value that was matched or the empty String if not known.
+ */
+ String getMatchValue();
+
+ /**
+ * @return The {@code url-pattern} that matched this request or the empty
+ * String if not known.
+ */
+ String getPattern();
+
+ /**
+ * @return The type of match ({@link MappingMatch#UNKNOWN} if not known)
+ */
+ MappingMatch getMatchType();
+}
Propchange: tomcat/trunk/java/javax/servlet/http/Mapping.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tomcat/trunk/java/javax/servlet/http/MappingMatch.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/http/MappingMatch.java?rev=1734055&view=auto
==============================================================================
--- tomcat/trunk/java/javax/servlet/http/MappingMatch.java (added)
+++ tomcat/trunk/java/javax/servlet/http/MappingMatch.java Tue Mar 8 10:59:58
2016
@@ -0,0 +1,33 @@
+/*
+* 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 javax.servlet.http;
+
+/**
+ * Represents the ways that a request can be mapped to a servlet
+ *
+ * @since 4.0
+ */
+public enum MappingMatch {
+
+ CONTEXT_ROOT,
+ DEFAULT,
+ EXACT,
+ EXTENSION,
+ IMPLICIT,
+ PATH,
+ UNKNOWN
+}
Propchange: tomcat/trunk/java/javax/servlet/http/MappingMatch.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java?rev=1734055&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java (added)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java Tue Mar
8 10:59:58 2016
@@ -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.catalina.core;
+
+import javax.servlet.http.Mapping;
+import javax.servlet.http.MappingMatch;
+
+public class ApplicationMapping implements Mapping {
+
+ @Override
+ public String getMatchValue() {
+ // TODO Auto-generated method stub
+ return "";
+ }
+
+ @Override
+ public String getPattern() {
+ // TODO Auto-generated method stub
+ return "";
+ }
+
+ @Override
+ public MappingMatch getMatchType() {
+ // TODO Auto-generated method stub
+ return MappingMatch.UNKNOWN;
+ }
+
+}
Propchange: tomcat/trunk/java/org/apache/catalina/core/ApplicationMapping.java
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]