java.lang.Object
io.helidon.media.common.ContentTypeCharset
Deprecated.
Accessor for the
Charset specified by a content-type header.-
Method Summary
Modifier and TypeMethodDescriptionstatic CharsetdetermineCharset(Parameters headers) Deprecated.Returns theCharsetspecified in the content-type header, usingStandardCharsets.UTF_8as the default.static CharsetdetermineCharset(Parameters headers, Charset defaultCharset) Deprecated.Returns theCharsetspecified in the content type header.
-
Method Details
-
determineCharset
Deprecated.Returns theCharsetspecified in the content-type header, usingStandardCharsets.UTF_8as the default.- Parameters:
headers- The headers.- Returns:
- The charset.
-
determineCharset
Deprecated.Returns theCharsetspecified in the content type header. If not provided or an error occurs on lookup, the given default is returned.- Parameters:
headers- The headers.defaultCharset- The default.- Returns:
- The charset.
-
MessageBodyContext.charset()instead