Package akka.http.javadsl.model
Class HttpCharset
- java.lang.Object
-
- akka.http.javadsl.model.HttpCharset
-
- Direct Known Subclasses:
HttpCharset
public abstract class HttpCharset extends java.lang.Object
Represents a charset in Http. SeeHttpCharsets
for a set of predefined charsets and static constructors to create custom charsets.
-
-
Constructor Summary
Constructors Constructor Description HttpCharset()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Iterable<java.lang.String>
getAliases()
Returns the predefined alias names for this charset.abstract java.nio.charset.Charset
nioCharset()
Returns the Charset for this charset if available or throws an exception otherwise.HttpCharsetRange
toRange()
Creates a range from this charset with qValue = 1.HttpCharsetRange
toRange(float qValue)
Creates a range from this charset with the given qValue.abstract java.lang.String
value()
Returns the name of this charset.abstract HttpCharsetRange
withQValue(float qValue)
An alias for toRange(float).
-
-
-
Method Detail
-
value
public abstract java.lang.String value()
Returns the name of this charset.
-
toRange
public HttpCharsetRange toRange()
Creates a range from this charset with qValue = 1.
-
toRange
public HttpCharsetRange toRange(float qValue)
Creates a range from this charset with the given qValue.
-
withQValue
public abstract HttpCharsetRange withQValue(float qValue)
An alias for toRange(float).
-
getAliases
public abstract java.lang.Iterable<java.lang.String> getAliases()
Returns the predefined alias names for this charset.
-
nioCharset
public abstract java.nio.charset.Charset nioCharset()
Returns the Charset for this charset if available or throws an exception otherwise.
-
-