Class JStachioProperties

java.lang.Object
io.jstach.opt.spring.boot.webmvc.JStachioProperties

@ConfigurationProperties(prefix="spring.jstachio.webmvc") public class JStachioProperties extends Object
@ConfigurationProperties for JStachio.
Author:
agentgt
  • Constructor Details

  • Method Details

    • getBufferLimit

      public int getBufferLimit()
      Because JStachio does pre-encoding of templates it can handle buffering the template output better than the builtin servlet framework buffering while reliable setting the Content-Length. If the servlet frameworks buffer is set higher than this value it will be used as the limit instead.
      Returns:
      the buffer limit in number of bytes which by default is "65536".
    • setBufferLimit

      public void setBufferLimit(int bufferLimit)
      Parameters:
      bufferLimit - a zero or negative number will disable buffering.
    • getMediaType

      The media type which by default is "text/html; charset=UTF-8". If the charset is not in the media type than UTF-8 will be used.
      Returns:
      media type ideally with charset.
    • setMediaType

      public void setMediaType(MediaType mediaType)
      Parameters:
      mediaType - media type ideally with charset.