@@ -117,15 +117,14 @@ public interface HttpServletMapping {
117
117
118
118
/**
119
119
* <p>Return the portion of the URI path that caused this request to
120
- * be matched or the empty String if not known or not knowable. If
121
- * the {@link getMappingMatch} value is {@code CONTEXT_ROOT} or
122
- * {@code DEFAULT}, this method must return the empty string. If
123
- * the {@link getMappingMatch} value is {@code EXACT}, this method
124
- * must return the portion of the path that matched the servlet,
125
- * omitting any leading slash. If the {@link getMappingMatch} value
126
- * is {@code EXTENSION} or {@code PATH}, this method must return the
127
- * value that matched the '*'. See the class javadoc for
128
- * examples. </p>
120
+ * be matched. If the {@link getMappingMatch} value is {@code
121
+ * CONTEXT_ROOT} or {@code DEFAULT}, this method must return the
122
+ * empty string. If the {@link getMappingMatch} value is {@code
123
+ * EXACT}, this method must return the portion of the path that
124
+ * matched the servlet, omitting any leading slash. If the {@link
125
+ * getMappingMatch} value is {@code EXTENSION} or {@code PATH}, this
126
+ * method must return the value that matched the '*'. See the class
127
+ * javadoc for examples. </p>
129
128
*
130
129
* @return the match.
131
130
*
@@ -135,30 +134,27 @@ public interface HttpServletMapping {
135
134
136
135
/**
137
136
* <p>Return the String representation for the {@code url-pattern}
138
- * for this mapping or the empty String if not known or not
139
- * knowable. If the {@link getMappingMatch} value is {@code
137
+ * for this mapping. If the {@link getMappingMatch} value is {@code
140
138
* CONTEXT_ROOT} or {@code DEFAULT}, this method must return the
141
139
* empty string. If the {@link getMappingMatch} value is {@code
142
140
* EXTENSION}, this method must return the pattern, without any
143
141
* leading slash. Otherwise, this method returns the pattern
144
142
* exactly as specified in the descriptor or Java configuration.</p>
145
143
*
146
144
* @return the String representation for the
147
- * {@code url-pattern} for this mapping or the empty String if not known
148
- * or not knowable.
145
+ * {@code url-pattern} for this mapping.
149
146
*
150
147
* @since 4.0
151
148
*/
152
149
public String getPattern ();
153
150
154
151
/**
155
- * <p>Return the String representation for the
156
- * {@code servlet-name} for this mapping or the empty String if not known
157
- * or not knowable .</p>
152
+ * <p>Return the String representation for the {@code servlet-name}
153
+ * for this mapping. In the case of a {@code DEFAULT MappingMatch},
154
+ * the return from this method is unspecified .</p>
158
155
*
159
- * @return the String representation for the
160
- * {@code servlet-name} for this mapping or the empty String if not known
161
- * or not knowable.
156
+ * @return the String representation for the {@code servlet-name}
157
+ * for this mapping.
162
158
*
163
159
* @since 4.0
164
160
*/
0 commit comments