public class

MailPathConverter

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

Class Overview

A Path converter that converts friendly mail path url to a viewmail action. This converter expects the url to have exactly 3 parameters as:

  • Space Key
  • "mail" literal
  • id (numeric)

Summary

Constants
String VIEW_MAIL
Fields
protected VelocityEngineResolver resolver
Public Constructors
MailPathConverter()
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

Constants

public static final String VIEW_MAIL

Constant Value: "/spaces/viewmail.action?key=${key}&id=${id}"

Fields

protected VelocityEngineResolver resolver

Public Constructors

public MailPathConverter ()

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)