|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.servlet.simpledisplay.ConvertedPath
public class ConvertedPath
Encapsulates the result of a path conversion.
Constructor Summary | |
---|---|
ConvertedPath(java.lang.String url)
Construct a ConvertedPath which will render ( getPath(Map) ) by appending
any added parameters as query parameters to the supplied url. |
|
ConvertedPath(java.lang.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 |
Method Summary | |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value)
|
java.util.Map |
getParameters()
|
java.lang.String |
getPath()
|
java.lang.String |
getPath(java.util.Map<java.lang.String,java.lang.String[]> queryParameters)
Get the converted path with the supplied query parameters also included. |
java.lang.String |
getUrl()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvertedPath(java.lang.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(java.lang.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.Method Detail |
---|
public void addParameter(java.lang.String name, java.lang.String value)
public java.lang.String getUrl()
public java.lang.String getPath()
public java.lang.String getPath(java.util.Map<java.lang.String,java.lang.String[]> queryParameters)
queryParameters
-
public java.util.Map getParameters()
addParameter(String, String)
. These parameters
will be URL encoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |