Default Methods | |
---|---|
ContentType |
getContentType()
Get the content type of this document, by default, "text/html;charset=UTF-8".
|
Charset |
getCharset()
Get the charset of this document, by default "UTF-8".
|
HttpResponseImpl |
toResponse(int statusCode)
Create an http response serving this document.
|
getContentBody, getContentBody
default ContentType getContentType()
If getCharset()
is overridden (and this method is not),
this method will return a content type with the charset parameter provided by getCharset()
.
getContentType
in interface TextDoc
default Charset getCharset()
getCharset
in interface TextDoc
default HttpResponseImpl toResponse(int statusCode)