Class WebUtils

java.lang.Object
org.springframework.ws.support.WebUtils

public abstract class WebUtils extends Object
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 Details

    • WebUtils

      public WebUtils()
  • Method Details

    • extractFilenameFromUrlPath

      public static String extractFilenameFromUrlPath(String urlPath)
      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

      public static String extractFullFilenameFromUrlPath(String urlPath)
      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")