public class

SpacePathConverter

extends Object
implements PathConverter
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.

Summary

Constants
String DISPLAY_SPACE_HOME_PAGE_PATH
Fields
protected VelocityEngineResolver resolver
Public Constructors
SpacePathConverter()
Public Methods
ConvertedPath getPath(String simplePath)
Returns a ConvertedPath based on the passed in path.
boolean handles(String simplePath)
Return true from this method if your path converter can convert the specified path.
void setResolver(VelocityEngineResolver resolver)
void setSettingsManager(SettingsManager settingsManager)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.servlet.simpledisplay.PathConverter

Constants

public static final String DISPLAY_SPACE_HOME_PAGE_PATH

Constant Value: "/spaces/viewspace.action?key=${key}"

Fields

protected VelocityEngineResolver resolver

Public Constructors

public SpacePathConverter ()

Public Methods

public ConvertedPath getPath (String simplePath)

Returns a ConvertedPath based on the passed in path.

Parameters
simplePath the path relative to the servlet mapping
Returns

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

public void setResolver (VelocityEngineResolver resolver)

public void setSettingsManager (SettingsManager settingsManager)