Class PathUtils

java.lang.Object
org.jboss.ws.undertow_httpspi.PathUtils

public class PathUtils extends Object
  • Constructor Details

    • PathUtils

      public PathUtils()
  • Method Details

    • getPath

      public static String getPath(String addr)
      Get the final path section of an address (for servlet container, this is typically a url-pattern for an endpoint)
      Parameters:
      addr -
      Returns:
    • getPath

      public static String getPath(URI addr)
    • getPathFromRequest

      public static String getPathFromRequest(String requestPath)
    • getContextPath

      public static String getContextPath(String addr)
      Get the context path section of an address
      Parameters:
      addr -
      Returns:
    • getContextPathFromRequest

      public static String getContextPathFromRequest(String requestPath)
    • getContextPath

      public static String getContextPath(URI addr)
    • removeTrailingSlash

      public static String removeTrailingSlash(String path)