Interface TemplateLocatorService

  • All Superinterfaces:
    java.io.Serializable
    All Known Implementing Classes:
    TemplateLocatorServiceImpl

    public interface TemplateLocatorService
    extends java.io.Serializable
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String findTemplate​(java.lang.String site, java.lang.String requestURI)
      This method does return template page html-data.
      java.lang.String findTemplateByPath​(java.lang.String path)
      This method does return template page html-data.
      java.lang.String getFragmentHtml​(java.lang.String currentPath)
      This method does return template fragment html-data.
      java.lang.String getFragmentPath​(java.lang.String path)
      This method does return template fragment path.
      java.lang.String getPageHtml​(java.lang.String currentPath)
      This method does return template page html-data.
      java.lang.String getPagePath​(java.lang.String path)
      This method does return template page path.
      java.lang.String getSiteFromContext()
      This method returns data as text from context.
    • Method Detail

      • getSiteFromContext

        java.lang.String getSiteFromContext()
        This method returns data as text from context.
        Returns:
        data as text
      • findTemplate

        java.lang.String findTemplate​(java.lang.String site,
                                      java.lang.String requestURI)
        This method does return template page html-data.
        Parameters:
        site - the root folder to be used for searching
        requestURI - the rest part of the path
        Returns:
        template content as html-string
      • findTemplateByPath

        java.lang.String findTemplateByPath​(java.lang.String path)
        This method does return template page html-data.
        Parameters:
        path - the path to be used for search
        Returns:
        template content as html-string
      • getPagePath

        java.lang.String getPagePath​(java.lang.String path)
        This method does return template page path.
        Parameters:
        path - path of page which will be returned
        Returns:
        template content as html-string
      • getFragmentPath

        java.lang.String getFragmentPath​(java.lang.String path)
        This method does return template fragment path.
        Parameters:
        path - path of fragment which will be returned
        Returns:
        data as text
      • getPageHtml

        java.lang.String getPageHtml​(java.lang.String currentPath)
        This method does return template page html-data.
        Parameters:
        currentPath - html of page which will be returned
        Returns:
        html-data as text
      • getFragmentHtml

        java.lang.String getFragmentHtml​(java.lang.String currentPath)
        This method does return template fragment html-data.
        Parameters:
        currentPath - html of fragment which will be returned
        Returns:
        html-data as text