ThymeleafContent

class ThymeleafContent

Represents a content handled by Thymeleaf feature.

Parameters

template - name that is resolved by thymeleaf

model - to be passed during template rendering

etag - value for E-Tag header (optional)

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

Constructors

<init>

ThymeleafContent(
    template: String,
    model: Map<String, Any>,
    etag: String? = null,
    contentType: ContentType = ContentType.Text.Html.withCharset(Charsets.UTF_8))

Represents a content handled by Thymeleaf feature.

Properties

contentType

val contentType: ContentType

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

etag

val etag: String?

value for E-Tag header (optional)

model

val model: Map<String, Any>

to be passed during template rendering

template

val template: String

name that is resolved by thymeleaf