java.lang.Object |
↳ |
com.atlassian.confluence.servlet.simpledisplay.SpacePathConverter |
Class Overview
This path converter takes a friendly space url and converts it into a viewspace or browsespace action url.
This converter expects exactly one field, the space key.
This converter will return a browse space url if the global setting 'View Space Goes to Browse Space' is
turned on, otherwise the home page is returned.
Constants
public
static
final
String
DISPLAY_SPACE_HOME_PAGE_PATH
Constant Value:
"/spaces/viewspace.action?key=${key}"
Fields
Public Constructors
public
SpacePathConverter
()
Public Methods
Parameters
simplePath
| the path relative to the servlet mapping |
public
boolean
handles
(String simplePath)
Return true from this method if your path converter can convert the specified path.
By default, the SimpleDisplayServlet will be mapped to '/display' which will be stripped off
the path before being passed to this method.
The first converter that returns true for a path will be used to perform the conversion.
Parameters
simplePath
| the path relative to the servlet mapping |
Returns
- true if your path converter can handle this path