| Constructor and Description |
|---|
ExtendedURL(List<String> segments)
Populate the Extended URL with a list of path segments.
|
ExtendedURL(URL url) |
ExtendedURL(URL url,
String ignorePrefix) |
public ExtendedURL(List<String> segments)
segments - the path segments of the URLpublic ExtendedURL(URL url) throws CreateResourceReferenceException
url - the URL being wrappedCreateResourceReferenceException - if the passed URL is invalid which can happen if it
has incorrect encodingpublic ExtendedURL(URL url, String ignorePrefix) throws CreateResourceReferenceException
url - the URL being wrappedignorePrefix - the ignore prefix must start with "/" (eg "/xwiki"). It can be empty or null too in which
case it's not usedCreateResourceReferenceException - if the passed URL is invalid which can happen if it
has incorrect encodingpublic List<String> getSegments()
public URI getURI()
public String serialize()
Copyright © 2004–2014 XWiki. All rights reserved.