Package org.jboss.ws.undertow_httpspi
Class PathUtils
java.lang.Object
org.jboss.ws.undertow_httpspi.PathUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContextPath(String addr) Get the context path section of an addressstatic StringgetContextPath(URI addr) static StringgetContextPathFromRequest(String requestPath) static StringGet the final path section of an address (for servlet container, this is typically a url-pattern for an endpoint)static Stringstatic StringgetPathFromRequest(String requestPath) static StringremoveTrailingSlash(String path)
-
Constructor Details
-
PathUtils
public PathUtils()
-
-
Method Details
-
getPath
Get the final path section of an address (for servlet container, this is typically a url-pattern for an endpoint)- Parameters:
addr-- Returns:
-
getPath
-
getPathFromRequest
-
getContextPath
Get the context path section of an address- Parameters:
addr-- Returns:
-
getContextPathFromRequest
-
getContextPath
-
removeTrailingSlash
-