- java.lang.Object
-
- io.helidon.media.common.ContentTypeCharset
-
@Deprecated(since="2.0.0") public class ContentTypeCharset extends Object
Deprecated.since 2.0.0, useMessageBodyContext.charset()
insteadAccessor for theCharset
specified by a content-type header.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Charset
determineCharset(Parameters headers)
Deprecated.Returns theCharset
specified in the content-type header, usingStandardCharsets.UTF_8
as the default.static Charset
determineCharset(Parameters headers, Charset defaultCharset)
Deprecated.Returns theCharset
specified in the content type header.
-
-
-
Method Detail
-
determineCharset
public static Charset determineCharset(Parameters headers)
Deprecated.Returns theCharset
specified in the content-type header, usingStandardCharsets.UTF_8
as the default.- Parameters:
headers
- The headers.- Returns:
- The charset.
-
determineCharset
public static Charset determineCharset(Parameters headers, Charset defaultCharset)
Deprecated.Returns theCharset
specified 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.
-
-