public class ConvertedPath extends Object
Constructor and Description |
---|
ConvertedPath(String url)
Construct a ConvertedPath which will render (
getPath(Map) ) by appending
any added parameters as query parameters to the supplied url. |
ConvertedPath(String pathTemplate,
VelocityEngineResolver resolver)
Deprecated.
since Confluence 4.3. The resolver parameter is no longer necessary. We prefer to
construct ConvertedPath by simply appending query parameters rather than rendering Velocity
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(String name,
String value) |
Map |
getParameters() |
String |
getPath() |
String |
getPath(Map<String,String[]> queryParameters)
Get the converted path with the supplied query parameters also included.
|
String |
getUrl() |
public ConvertedPath(String url)
getPath(Map)
) by appending
any added parameters as query parameters to the supplied url.url
- a url with no query parameters@Deprecated public ConvertedPath(String pathTemplate, VelocityEngineResolver resolver)
getPath()
) by rendering
the supplied Velocity template.pathTemplate
- a Velocity template representing a URL.resolver
- the Velocity resolver to be used to render the pathTemplate parameter.public String getUrl()
public String getPath()
public String getPath(Map<String,String[]> queryParameters)
queryParameters
- public Map getParameters()
addParameter(String, String)
. These parameters
will be URL encodedCopyright © 2003–2016 Atlassian. All rights reserved.
View cookie preferences