21
21
import java .util .LinkedHashMap ;
22
22
import java .util .Map ;
23
23
import java .util .Properties ;
24
- import javax .servlet .ServletContext ;
25
24
import javax .servlet .http .HttpServletRequest ;
26
25
27
26
import org .apache .commons .logging .Log ;
@@ -72,8 +71,9 @@ public class UrlPathHelper {
72
71
73
72
74
73
/**
75
- * Whether URL lookups should always use the full path within current
76
- * application context, i.e. within {@link ServletContext#getContextPath()}.
74
+ * Whether URL lookups should always use the full path within the current
75
+ * web application context, i.e. within
76
+ * {@link javax.servlet.ServletContext#getContextPath()}.
77
77
* <p>If set to {@literal false} the path within the current servlet mapping
78
78
* is used instead if applicable (i.e. in the case of a prefix based Servlet
79
79
* mapping such as "/myServlet/*").
@@ -496,7 +496,7 @@ protected String determineEncoding(HttpServletRequest request) {
496
496
497
497
/**
498
498
* Remove ";" (semicolon) content from the given request URI if the
499
- * {@linkplain #setRemoveSemicolonContent(boolean) removeSemicolonContent}
499
+ * {@linkplain #setRemoveSemicolonContent removeSemicolonContent}
500
500
* property is set to "true". Note that "jssessionid" is always removed.
501
501
* @param requestUri the request URI string to remove ";" content from
502
502
* @return the updated URI string
@@ -528,12 +528,10 @@ private String removeJsessionid(String requestUri) {
528
528
}
529
529
530
530
/**
531
- * Decode the given URI path variables via
532
- * {@link #decodeRequestString(HttpServletRequest, String)} unless
533
- * {@link #setUrlDecode(boolean)} is set to {@code true} in which case it is
534
- * assumed the URL path from which the variables were extracted is already
535
- * decoded through a call to
536
- * {@link #getLookupPathForRequest(HttpServletRequest)}.
531
+ * Decode the given URI path variables via {@link #decodeRequestString} unless
532
+ * {@link #setUrlDecode} is set to {@code true} in which case it is assumed
533
+ * the URL path from which the variables were extracted is already decoded
534
+ * through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
537
535
* @param request current HTTP request
538
536
* @param vars URI variables extracted from the URL path
539
537
* @return the same Map or a new Map instance
@@ -550,18 +548,16 @@ public Map<String, String> decodePathVariables(HttpServletRequest request, Map<S
550
548
}
551
549
552
550
/**
553
- * Decode the given matrix variables via
554
- * {@link #decodeRequestString(HttpServletRequest, String)} unless
555
- * {@link #setUrlDecode(boolean)} is set to {@code true} in which case it is
556
- * assumed the URL path from which the variables were extracted is already
557
- * decoded through a call to
558
- * {@link #getLookupPathForRequest(HttpServletRequest)}.
551
+ * Decode the given matrix variables via {@link #decodeRequestString} unless
552
+ * {@link #setUrlDecode} is set to {@code true} in which case it is assumed
553
+ * the URL path from which the variables were extracted is already decoded
554
+ * through a call to {@link #getLookupPathForRequest(HttpServletRequest)}.
559
555
* @param request current HTTP request
560
556
* @param vars URI variables extracted from the URL path
561
557
* @return the same Map or a new Map instance
562
558
*/
563
- public MultiValueMap <String , String > decodeMatrixVariables (HttpServletRequest request ,
564
- MultiValueMap <String , String > vars ) {
559
+ public MultiValueMap <String , String > decodeMatrixVariables (
560
+ HttpServletRequest request , MultiValueMap <String , String > vars ) {
565
561
566
562
if (this .urlDecode ) {
567
563
return vars ;
0 commit comments