JteContent

class JteContent(template: String, params: Map<String, Any?>, etag: String?, contentType: ContentType)

A response content handled by the Jte plugin.

Parameters

template

file name that is resolved by the Jte TemplateEngine

params

to be passed to the template

etag

value for the E-Tag header (optional)

contentType

of response (optional, text/html with UTF-8 character encoding by default)

Constructors

Link copied to clipboard
fun JteContent(template: String, params: Map<String, Any?>, etag: String? = null, contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

Properties

Link copied to clipboard
val contentType: ContentType
Link copied to clipboard
val etag: String? = null
Link copied to clipboard
val params: Map<String, Any?>
Link copied to clipboard
val template: String