@@ -117,15 +117,14 @@ public interface HttpServletMapping {
117117
118118 /**
119119 * <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>
129128 *
130129 * @return the match.
131130 *
@@ -135,30 +134,27 @@ public interface HttpServletMapping {
135134
136135 /**
137136 * <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
140138 * CONTEXT_ROOT} or {@code DEFAULT}, this method must return the
141139 * empty string. If the {@link getMappingMatch} value is {@code
142140 * EXTENSION}, this method must return the pattern, without any
143141 * leading slash. Otherwise, this method returns the pattern
144142 * exactly as specified in the descriptor or Java configuration.</p>
145143 *
146144 * @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.
149146 *
150147 * @since 4.0
151148 */
152149 public String getPattern ();
153150
154151 /**
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>
158155 *
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.
162158 *
163159 * @since 4.0
164160 */
0 commit comments