Example usage for org.springframework.web.util UrlPathHelper getRequestUri

List of usage examples for org.springframework.web.util UrlPathHelper getRequestUri

Introduction

In this page you can find the example usage for org.springframework.web.util UrlPathHelper getRequestUri.

Prototype

public String getRequestUri(HttpServletRequest request) 

Source Link

Document

Return the request URI for the given request, detecting an include request URL if called within a RequestDispatcher include.

Usage

From source file:org.springframework.web.servlet.resource.ResourceUrlProvider.java

private int getLookupPathIndex(HttpServletRequest request) {
    UrlPathHelper pathHelper = getUrlPathHelper();
    String requestUri = pathHelper.getRequestUri(request);
    String lookupPath = pathHelper.getLookupPathForRequest(request);
    return requestUri.indexOf(lookupPath);
}