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 SummaryConstructors
- 
Method SummaryModifier 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- 
HttpCharsetpublic HttpCharset()
 
- 
- 
Method Details- 
valueReturns the name of this charset.
- 
toRangeCreates a range from this charset with qValue = 1.
- 
toRangeCreates a range from this charset with the given qValue.
- 
withQValueAn alias for toRange(float).
- 
getAliasesReturns the predefined alias names for this charset.
- 
nioCharsetReturns the Charset for this charset if available or throws an exception otherwise.
 
-