com.atlassian.confluence.servlet.simpledisplay
Class BlogPathConverter

java.lang.Object
  extended by com.atlassian.confluence.servlet.simpledisplay.BlogPathConverter
All Implemented Interfaces:
PathConverter

public class BlogPathConverter
extends java.lang.Object
implements PathConverter

A Path converter that converts friendly blog path urls to a viewpage or viewblogposts action. This converter expects the url to have between 3 and 5 path elements and interprets them as:

If the title is not specified, this converter returns a path that will show all posts for that day.


Constructor Summary
BlogPathConverter()
           
 
Method Summary
 ConvertedPath getPath(java.lang.String path)
          Returns a ConvertedPath based on the passed in path.
 boolean handles(java.lang.String simplePath)
          Return true from this method if your path converter can convert the specified path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlogPathConverter

public BlogPathConverter()
Method Detail

handles

public boolean handles(java.lang.String simplePath)
Description copied from interface: PathConverter
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.

Specified by:
handles in interface PathConverter
Parameters:
simplePath - the path relative to the servlet mapping
Returns:
true if your path converter can handle this path

getPath

public ConvertedPath getPath(java.lang.String path)
Description copied from interface: PathConverter
Returns a ConvertedPath based on the passed in path.

Specified by:
getPath in interface PathConverter
Parameters:
path - the path relative to the servlet mapping
Returns:
a ConvertedPath representing the path conversion


Copyright © 2003-2013 Atlassian. All Rights Reserved.