public interface

PathConverter

com.atlassian.confluence.servlet.simpledisplay.PathConverter
Known Indirect Subclasses

Class Overview

Path converters are used by the SimpleDisplayServlet to convert friendly URL's to action URLs.

Summary

Public Methods
ConvertedPath getPath(String path)
Returns a ConvertedPath based on the passed in path.
boolean handles(String path)
Return true from this method if your path converter can convert the specified path.

Public Methods

public ConvertedPath getPath (String path)

Returns a ConvertedPath based on the passed in path.

Parameters
path the path relative to the servlet mapping
Returns

public boolean handles (String path)

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
path the path relative to the servlet mapping
Returns
  • true if your path converter can handle this path