Constructor and Description |
---|
ExtendedURL(List<String> segments)
Populate the Extended URL with a list of path segments.
|
ExtendedURL(List<String> segments,
Map<String,List<String>> parameters)
Populate the Extended URL with a list of path segments.
|
ExtendedURL(URL url,
String ignorePrefix) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
protected Map<String,List<String>> |
extractParameters(URI uri) |
Map<String,List<String>> |
getParameters() |
List<String> |
getSegments() |
URI |
getURI() |
URL |
getWrappedURL() |
int |
hashCode() |
String |
serialize() |
String |
toString() |
public ExtendedURL(List<String> segments)
segments
- the path segments of the URLpublic ExtendedURL(List<String> segments, Map<String,List<String>> parameters)
segments
- the path segments of the URLparameters
- the query string parameters of the URLpublic ExtendedURL(URL url, String ignorePrefix) throws org.xwiki.resource.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 usedorg.xwiki.resource.CreateResourceReferenceException
- if the passed URL is invalid which can happen if it has incorrect
encodingpublic List<String> getSegments()
public URL getWrappedURL()
public URI getURI()
public Map<String,List<String>> getParameters()
public String serialize()
Copyright © 2004–2022 XWiki. All rights reserved.