Class HttpCharset
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpCharset
org.apache.pekko.http.scaladsl.model.HttpCharset
- All Implemented Interfaces:
- Serializable,- Renderable,- SingletonValueRenderable,- WithQValue<HttpCharsetRange>,- scala.Equals,- scala.Product
public final class HttpCharset
extends HttpCharset
implements SingletonValueRenderable, WithQValue<HttpCharsetRange>, scala.Product, Serializable
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionscala.collection.immutable.Seq<String>aliases()static HttpCharsetstatic scala.util.Try<Charset>findNioCharset(String name) Java APIReturns the Charset for this charset if available or throws an exception otherwisetoRange()Creates a range from this charset with qValue = 1.value()Returns the name of this charset.withQValue(float qValue) An alias for toRange(float).Methods inherited from class org.apache.pekko.http.javadsl.model.HttpCharsettoRangeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.SingletonValueRenderablerenderMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValuewithQValue
- 
Constructor Details- 
HttpCharset
 
- 
- 
Method Details- 
custom
- 
findNioCharset
- 
valueDescription copied from class:HttpCharsetReturns the name of this charset.- Specified by:
- valuein interface- SingletonValueRenderable
- Specified by:
- valuein class- HttpCharset
 
- 
aliases
- 
nioCharsetReturns the Charset for this charset if available or throws an exception otherwise- Specified by:
- nioCharsetin class- HttpCharset
 
- 
charsetWithUtf8Failover- Returns:
- this HttpCharset instance if this charset can be parsed to a
 java.nio.charset.Charsetinstance, otherwise returns the UTF-8 charset.
- Since:
- 1.1.0
 
- 
withQValueDescription copied from class:HttpCharsetAn alias for toRange(float).- Specified by:
- withQValuein interface- WithQValue<HttpCharsetRange>
- Specified by:
- withQValuein class- HttpCharset
 
- 
toRangeDescription copied from class:HttpCharsetCreates a range from this charset with qValue = 1.- Overrides:
- toRangein class- HttpCharset
 
- 
getAliasesJava API- Specified by:
- getAliasesin class- HttpCharset
 
 
-