Class View


  • public abstract class View
    extends Object
    A Dropwizard view class.
    • Constructor Detail

      • View

        protected View​(String templateName)
        Creates a new view.
        Parameters:
        templateName - the name of the template resource
      • View

        protected View​(String templateName,
                       @Nullable Charset charset)
        Creates a new view.
        Parameters:
        templateName - the name of the template resource
        charset - the character set for templateName
    • Method Detail

      • getTemplateName

        public String getTemplateName()
        Returns the template name.
        Returns:
        the template name
      • getCharset

        public Optional<Charset> getCharset()
        Returns the character set of the template.
        Returns:
        the character set of the template