Class HttpCharset
java.lang.Object
org.apache.pekko.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the predefined alias names for this charset.abstract CharsetReturns 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 Stringvalue()Returns the name of this charset.abstract HttpCharsetRangewithQValue(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.
-