org.milyn.net
Class URIUtil
java.lang.Object
org.milyn.net.URIUtil
public abstract class URIUtil
- extends Object
URI utility methods.
- Author:
- tom.fennelly@gmail.com
|
Method Summary |
static URI |
getParent(URI uri)
Get the parent URI of the supplied URI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIUtil
public URIUtil()
getParent
public static URI getParent(URI uri)
throws URISyntaxException
- Get the parent URI of the supplied URI
- Parameters:
uri - The input URI for which the parent URI is being requrested.
- Returns:
- The parent URI. Returns a URI instance equivalent to "../" if
the supplied URI path has no parent.
- Throws:
URISyntaxException - Failed to reconstruct the parent URI.
Copyright © 2018. All rights reserved.