Browse Source

Consistent attribute value spelling for PATH_ATTRIBUTE

See gh-24945
pull/26100/head
Juergen Hoeller 4 years ago
parent
commit
7206a23d33
  1. 2
      spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java
  2. 4
      spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java

2
spring-web/src/main/java/org/springframework/web/util/ServletRequestPathUtils.java

@ -39,7 +39,7 @@ import org.springframework.util.Assert;
public abstract class ServletRequestPathUtils { public abstract class ServletRequestPathUtils {
/** Name of Servlet request attribute that holds the parsed {@link RequestPath}. */ /** Name of Servlet request attribute that holds the parsed {@link RequestPath}. */
public static final String PATH_ATTRIBUTE = ServletRequestPathUtils.class.getName() + ".path"; public static final String PATH_ATTRIBUTE = ServletRequestPathUtils.class.getName() + ".PATH";
/** /**

4
spring-web/src/main/java/org/springframework/web/util/UrlPathHelper.java

@ -58,9 +58,9 @@ public class UrlPathHelper {
* {@link #getLookupPathForRequest resolved} lookupPath. * {@link #getLookupPathForRequest resolved} lookupPath.
* @since 5.3 * @since 5.3
*/ */
public static final String PATH_ATTRIBUTE = UrlPathHelper.class.getName() + ".path"; public static final String PATH_ATTRIBUTE = UrlPathHelper.class.getName() + ".PATH";
private static boolean isServlet4Present = private static final boolean isServlet4Present =
ClassUtils.isPresent("javax.servlet.http.HttpServletMapping", ClassUtils.isPresent("javax.servlet.http.HttpServletMapping",
UrlPathHelper.class.getClassLoader()); UrlPathHelper.class.getClassLoader());

Loading…
Cancel
Save