Class BlogPathConverter

java.lang.Object
com.atlassian.confluence.servlet.simpledisplay.AbstractPathConverter
com.atlassian.confluence.servlet.simpledisplay.BlogPathConverter
All Implemented Interfaces:
PathConverter, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

public class BlogPathConverter extends AbstractPathConverter
A Path converter that converts friendly blog path urls to a viewpage or viewblogposts action if the dark feature confluence.readable.url is disabled. If the dark feature is enabled, it will redirect the legacy display blog path urls to a more user-friendly one

This converter expects the url to have between 3 and 5 path elements and interprets them as:

  • Space Key
  • Year
  • Month
  • Day (Optional)
  • Title (Optional)

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

  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Throws:
      Exception
    • handles

      public boolean handles(String simplePath)
    • getPath

      public ConvertedPath getPath(String path, String queryString)
      Description copied from interface: PathConverter
      Returns a ConvertedPath based on the passed in path and query string.
      Parameters:
      path - the path relative to the servlet mapping
      queryString - the query string
      Returns:
      a ConvertedPath representing the path conversion