Package akka.http.javadsl.model
Class HttpCharset
java.lang.Object
akka.http.javadsl.model.HttpCharset
- Direct Known Subclasses:
HttpCharset
Represents a charset in Http. See
HttpCharsets
for a set of predefined charsets and
static constructors to create custom charsets.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the predefined alias names for this charset.abstract Charset
Returns the Charset for this charset if available or throws an exception otherwise.toRange()
Creates a range from this charset with qValue = 1.toRange
(float qValue) Creates a range from this charset with the given qValue.abstract String
value()
Returns the name of this charset.abstract HttpCharsetRange
withQValue
(float qValue) An alias for toRange(float).
-
Constructor Details
-
HttpCharset
public HttpCharset()
-
-
Method Details
-
value
Returns the name of this charset. -
toRange
Creates a range from this charset with qValue = 1. -
toRange
Creates a range from this charset with the given qValue. -
withQValue
An alias for toRange(float). -
getAliases
Returns the predefined alias names for this charset. -
nioCharset
Returns the Charset for this charset if available or throws an exception otherwise.
-