Package org.springframework.ws.support
Class WebUtils
java.lang.Object
org.springframework.ws.support.WebUtils
Miscellaneous utilities for web applications. Used by various framework classes. NOTE: These are the parts of
org.springframework.web.util.WebUtils deprecated in Spring Framework 5.
- Since:
- 2.4.0
- Author:
- Greg Turnquist, Rod Johnson, Juergen Hoeller, Sebastien Deleuze
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
extractFilenameFromUrlPath
(String urlPath) Extract the URL filename from the given request URL path.static String
extractFullFilenameFromUrlPath
(String urlPath) Extract the full URL filename (including file extension) from the given request URL path.
-
Constructor Details
-
WebUtils
public WebUtils()
-
-
Method Details
-
extractFilenameFromUrlPath
Extract the URL filename from the given request URL path. Correctly resolves nested paths such as "/products/view.html" as well.- Parameters:
urlPath
- the request URL path (e.g. "/index.html")- Returns:
- the extracted URI filename (e.g. "index")
-
extractFullFilenameFromUrlPath
Extract the full URL filename (including file extension) from the given request URL path. Correctly resolve nested paths such as "/products/view.html" and remove any path and or query parameters.- Parameters:
urlPath
- the request URL path (e.g. "/products/index.html")- Returns:
- the extracted URI filename (e.g. "index.html")
-