Class UrlPathHelper

java.lang.Object
org.springframework.web.util.UrlPathHelper
org.springframework.extensions.webscripts.UrlPathHelper

public class UrlPathHelper extends org.springframework.web.util.UrlPathHelper
Overrides the SpringMVC default UrlPathHelper class to disable the use of the "clean" method which incorrectly removes everything from the URI path after the ; semi-colon character - as after decoding the URI this could well be a valid part of the URI path or a url argument.
Author:
Kevin Roast
  • Field Summary

    Fields inherited from class org.springframework.web.util.UrlPathHelper

    defaultInstance, PATH_ATTRIBUTE, rawPathInstance
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getOriginatingRequestUri(jakarta.servlet.http.HttpServletRequest request)
     
    getRequestUri(jakarta.servlet.http.HttpServletRequest request)
     

    Methods inherited from class org.springframework.web.util.UrlPathHelper

    decodeMatrixVariables, decodePathVariables, decodeRequestString, determineEncoding, getContextPath, getDefaultEncoding, getLookupPathForRequest, getOriginatingContextPath, getOriginatingQueryString, getOriginatingServletPath, getPathWithinApplication, getPathWithinServletMapping, getPathWithinServletMapping, getResolvedLookupPath, getServletPath, isUrlDecode, removeSemicolonContent, resolveAndCacheLookupPath, setAlwaysUseFullPath, setDefaultEncoding, setRemoveSemicolonContent, setUrlDecode, shouldRemoveSemicolonContent

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UrlPathHelper

      public UrlPathHelper()
  • Method Details

    • getRequestUri

      public String getRequestUri(jakarta.servlet.http.HttpServletRequest request)
      Overrides:
      getRequestUri in class org.springframework.web.util.UrlPathHelper
    • getOriginatingRequestUri

      public String getOriginatingRequestUri(jakarta.servlet.http.HttpServletRequest request)
      Overrides:
      getOriginatingRequestUri in class org.springframework.web.util.UrlPathHelper