Class ConvertedPath
java.lang.Object
com.atlassian.confluence.servlet.simpledisplay.ConvertedPath
Encapsulates the result of a path conversion.
-
Constructor Summary
ConstructorsConstructorDescriptionConvertedPath(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 4.3. -
Method Summary
-
Constructor Details
-
ConvertedPath
Construct a ConvertedPath which will forward to (getPath(Map)) by appending any added parameters as query parameters to the supplied url.- Parameters:
url- a url with no query parameters
-
ConvertedPath
Construct a ConvertedPath which will forward or redirect to (getPath(Map)) by appending any added parameters as query parameters to the supplied url.- Parameters:
url- a url with no query parametersaction- the action to take on the new path
-
ConvertedPath
Construct a ConvertedPath which will forward or redirect to (getPath(Map)) by appending any added parameters as query parameters to the supplied url.- Parameters:
url- a url with no query parametersaction- the action to take on the new path
-
ConvertedPath
Deprecated.since 4.3. The resolver parameter is no longer necessary. We prefer to construct ConvertedPath by simply appending query parameters rather than rendering VelocityConstruct a ConvertedPath which will forward to (getPath()) by rendering the supplied Velocity template.- Parameters:
pathTemplate- a Velocity template representing a URL.resolver- the Velocity resolver to be used to render the pathTemplate parameter.
-
-
Method Details
-
addParameter
-
getUrl
-
getAction
-
getPath
-
getPath
Deprecated.since 6.0. queryParameters is always passed null, usegetPath()instead -
getParameters
- Returns:
- only the parameters that are added via
addParameter(String, String). These parameters will be URL encoded
-