Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlPathHelper()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOriginatingRequestUri​(javax.servlet.http.HttpServletRequest request)  
      java.lang.String getRequestUri​(javax.servlet.http.HttpServletRequest request)  
      • Methods inherited from class org.springframework.web.util.UrlPathHelper

        decodeMatrixVariables, decodePathVariables, decodeRequestString, determineEncoding, getContextPath, getDefaultEncoding, getLookupPathForRequest, getLookupPathForRequest, getOriginatingContextPath, getOriginatingQueryString, getOriginatingServletPath, getPathWithinApplication, getPathWithinServletMapping, getServletPath, isUrlDecode, removeSemicolonContent, setAlwaysUseFullPath, setDefaultEncoding, setRemoveSemicolonContent, setUrlDecode, shouldRemoveSemicolonContent
      • Methods inherited from class java.lang.Object

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

      • UrlPathHelper

        public UrlPathHelper()
    • Method Detail

      • getRequestUri

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

        public java.lang.String getOriginatingRequestUri​(javax.servlet.http.HttpServletRequest request)
        Overrides:
        getOriginatingRequestUri in class org.springframework.web.util.UrlPathHelper