Package akka.http.javadsl.model
Class HttpCharsets
- java.lang.Object
-
- akka.http.javadsl.model.HttpCharsets
-
public final class HttpCharsets extends java.lang.Object
Contains a set of predefined charsets.
-
-
Field Summary
Fields Modifier and Type Field Description static HttpCharset
ISO_8859_1
static HttpCharset
US_ASCII
static HttpCharset
UTF_16
static HttpCharset
UTF_16BE
static HttpCharset
UTF_16LE
static HttpCharset
UTF_8
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpCharset
custom(java.lang.String value, java.lang.String... aliases)
Create and return a custom charset.static java.util.Optional<HttpCharset>
lookup(java.lang.String name)
Returns Some(charset) if the charset with the given name was found and None otherwise.
-
-
-
Field Detail
-
US_ASCII
public static final HttpCharset US_ASCII
-
ISO_8859_1
public static final HttpCharset ISO_8859_1
-
UTF_8
public static final HttpCharset UTF_8
-
UTF_16
public static final HttpCharset UTF_16
-
UTF_16BE
public static final HttpCharset UTF_16BE
-
UTF_16LE
public static final HttpCharset UTF_16LE
-
-
Method Detail
-
custom
public static HttpCharset custom(java.lang.String value, java.lang.String... aliases)
Create and return a custom charset.
-
lookup
public static java.util.Optional<HttpCharset> lookup(java.lang.String name)
Returns Some(charset) if the charset with the given name was found and None otherwise.
-
-