public class

UserStatusPathConverter

extends Object
implements PathConverter
java.lang.Object
   ↳ com.atlassian.confluence.servlet.simpledisplay.UserStatusPathConverter

Class Overview

Converts a path to a user status. e.g. "/display/status/fred/1234"

Summary

Fields
protected VelocityEngineResolver resolver
Public Constructors
UserStatusPathConverter()
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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.servlet.simpledisplay.PathConverter

Fields

protected VelocityEngineResolver resolver

Public Constructors

public UserStatusPathConverter ()

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
  • returns path to a status

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)