Class PackageTextTemplate

    • Constructor Detail

      • PackageTextTemplate

        public PackageTextTemplate​(Class<?> clazz,
                                   String fileName)
        Constructor.
        Parameters:
        clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
        fileName - the name of the file, relative to the clazz position
      • PackageTextTemplate

        public PackageTextTemplate​(Class<?> clazz,
                                   String fileName,
                                   String contentType)
        Constructor.
        Parameters:
        clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
        fileName - the name of the file, relative to the clazz position
        contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
      • PackageTextTemplate

        public PackageTextTemplate​(Class<?> clazz,
                                   String fileName,
                                   String contentType,
                                   String encoding)
        Constructor.
        Parameters:
        clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
        fileName - the name of the file, relative to the clazz position
        contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
        encoding - the file's encoding, for example, "UTF-8"
      • PackageTextTemplate

        public PackageTextTemplate​(Class<?> clazz,
                                   String fileName,
                                   String style,
                                   String variation,
                                   Locale locale,
                                   String contentType,
                                   String encoding)
        Constructor.
        Parameters:
        clazz - the Class to be used for retrieving the classloader for loading the PackagedTextTemplate
        fileName - the name of the file, relative to the clazz position
        style - Any resource style, such as a skin style (see Session)
        variation - The template's variation (of the style)
        locale - The locale of the resource to load
        contentType - the mime type of this resource, such as "image/jpeg" or " text/html"
        encoding - the file's encoding, for example, "UTF-8"