Class PagePathConverter

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

public class PagePathConverter extends AbstractPathConverter implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
If the dark feature confluence.readable.url is enabled, redirect /display/{space}/{page-slug} to /spaces/{space}/pages/{page-id}/{page-slug} which will eventually forwarded to viewpage.action Otherwise, this path converter converts it into a viewpage action url. This converter expects exactly two fields:
  • Space Key
  • Page Title
  • Constructor Details

  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • handles

      public boolean handles(String simplePath)
      Specified by:
      handles in interface PathConverter
    • 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.
      Specified by:
      getPath in interface PathConverter
      Parameters:
      path - the path relative to the servlet mapping
      queryString - the query string
      Returns:
      a ConvertedPath representing the path conversion