Package io.jstach.opt.spring.boot.webmvc
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintBecause JStachio does pre-encoding of templates it can handle buffering the template output better than the builtin servlet framework buffering while reliable setting theContent-Length.The media type which by default is "text/html; charset=UTF-8".voidsetBufferLimit(int bufferLimit) SeegetBufferLimit()voidsetMediaType(MediaType mediaType) SeegetMediaType()
-
Constructor Details
-
JStachioProperties
public JStachioProperties()
-
-
Method Details
-
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 theContent-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
SeegetBufferLimit()- 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
SeegetMediaType()- Parameters:
mediaType- media type ideally with charset.
-