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 Summary
Constructors -
Method Summary
Modifier 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.HttpCharset
toRangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.SingletonValueRenderable
renderMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValue
withQValue
-
Constructor Details
-
HttpCharset
-
-
Method Details
-
custom
-
findNioCharset
-
value
Description copied from class:HttpCharsetReturns the name of this charset.- Specified by:
valuein interfaceSingletonValueRenderable- Specified by:
valuein classHttpCharset
-
aliases
-
nioCharset
Returns the Charset for this charset if available or throws an exception otherwise- Specified by:
nioCharsetin classHttpCharset
-
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
-
withQValue
Description copied from class:HttpCharsetAn alias for toRange(float).- Specified by:
withQValuein interfaceWithQValue<HttpCharsetRange>- Specified by:
withQValuein classHttpCharset
-
toRange
Description copied from class:HttpCharsetCreates a range from this charset with qValue = 1.- Overrides:
toRangein classHttpCharset
-
getAliases
Java API- Specified by:
getAliasesin classHttpCharset
-