Class Util
java.lang.Object
com.sun.enterprise.deployment.deploy.shared.Util
Utility logic.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetURIName(URI uri) Returns the name portion of the specified URI.static URIConstructs a new URI by parsing the given string and then resolving it against the base URI.static URIReturns URI for the specified URL.
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
getURIName
Returns the name portion of the specified URI. This is defined as the part of the URI's path after the final slash (if any). If the URI ends with a slash that final slash is ignored in finding the name.- Parameters:
uri- the URI from which to extract the name- Returns:
- the name portion of the URI
-
toURI
Returns URI for the specified URL. This method will take care of the space in URL.- Parameters:
url- the URL to convert to URI- Returns:
- the URI
- Throws:
URISyntaxException
-
resolve
Constructs a new URI by parsing the given string and then resolving it against the base URI. This method will take care of the space in String.- Parameters:
baseUri- the base URI to resolve againsturiString- the String to construct URI and resolve- Returns:
- the resulting URI
-