Package com.helger.http.header.specific
Class AcceptCharsetHandler
java.lang.Object
com.helger.http.header.specific.AcceptCharsetHandler
Handler for the request HTTP header field "Accept-Charset"
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull AcceptCharsetListgetAcceptCharsets(@Nullable String sAcceptCharset) Parse the Accept-Charset HTTP header value and return a structured list.
-
Field Details
-
ANY_CHARSET
Any charset- See Also:
-
DEFAULT_CHARSET
Default charset iso-8859-1
-
-
Method Details
-
getAcceptCharsets
Parse the Accept-Charset HTTP header value and return a structured list.- Parameters:
sAcceptCharset- The Accept-Charset header value. May benullor empty.- Returns:
- A non-
nullAcceptCharsetListcontaining the parsed charsets. If the input is empty, all charsets are accepted.
-