public class ConvertedPath extends Object
Constructor and Description |
---|
ConvertedPath(String url)
Construct a ConvertedPath which will forward to (
getPath(Map) ) by appending
any added parameters as query parameters to the supplied url. |
ConvertedPath(String url,
PathConversionAction action)
Construct a ConvertedPath which will forward or redirect to (
getPath(Map) ) by appending
any added parameters as query parameters to the supplied url. |
ConvertedPath(String url,
PathConversionAction action,
boolean encodeAnchor)
Construct a ConvertedPath which will forward or redirect to (
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) |
PathConversionAction |
getAction() |
Map |
getParameters() |
String |
getPath() |
String |
getPath(Map<String,String[]> queryParameters)
Deprecated.
queryParameters is always passed null, use getPath() instead
|
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 parameterspublic ConvertedPath(String url, PathConversionAction action)
getPath(Map)
) by appending
any added parameters as query parameters to the supplied url.url
- a url with no query parametersaction
- the action to take on the new pathpublic ConvertedPath(String url, PathConversionAction action, boolean encodeAnchor)
getPath(Map)
) by appending
any added parameters as query parameters to the supplied url.url
- a url with no query parametersaction
- the action to take on the new path@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 PathConversionAction getAction()
public String getPath()
@Deprecated public String getPath(Map<String,String[]> queryParameters)
public Map getParameters()
addParameter(String, String)
. These parameters
will be URL encodedCopyright © 2003–2017 Atlassian. All rights reserved.