Class StringResource

    • Constructor Detail

      • StringResource

        public StringResource​(String body,
                              String encoding)
        convenience constructor; sets body to 'body' and sets lastModified to now
        Parameters:
        body -
        encoding -
    • Method Detail

      • getBody

        public String getBody()
        Sets the template body.
        Returns:
        String containing the template body.
      • getLastModified

        public long getLastModified()
        Returns the modification date of the template.
        Returns:
        Modification date in milliseconds.
      • setBody

        public void setBody​(String body)
        Sets a new value for the template body.
        Parameters:
        body - New body value
      • setLastModified

        public void setLastModified​(long lastModified)
        Changes the last modified parameter.
        Parameters:
        lastModified - The modification time in millis.
      • getEncoding

        public String getEncoding()
        Returns the encoding of this String resource.
        Returns:
        The encoding of this String resource.
      • setEncoding

        public void setEncoding​(String encoding)
        Sets the encoding of this string resource.
        Parameters:
        encoding - The new encoding of this resource.