public void setRequestPath ( String mapping , String path ) { this . requestPath = path ; int paramStartIdx = requestPath . indexOf ( "?" ) ; if ( StringUtils . isEmpty ( mapping ) ) { if ( paramStartIdx != - 1 ) { this . servletPath = requestPath . substring ( 0 , paramStartIdx ) ; } else { this . servletPath = requestPath ; } } else { this . servletPath = PathNormalizer . asPath ( mapping ) ; String pathInfo = removeServletMappingFromPath ( path , mapping ) ; this . pathInfo = pathInfo ; } // Sets the request URI if ( paramStartIdx == - 1 ) { this . requestURI = requestPath ; } else { this . requestURI = requestPath . substring ( 0 , paramStartIdx ) ; } initParameters ( ) ; }
Sets the requested path