Package akka.http.scaladsl.model
Class HttpCharset
- java.lang.Object
-
- akka.http.javadsl.model.HttpCharset
-
- akka.http.scaladsl.model.HttpCharset
-
- All Implemented Interfaces:
Renderable
,SingletonValueRenderable
,WithQValue<HttpCharsetRange>
,java.io.Serializable
,scala.Equals
,scala.Product
public final class HttpCharset extends HttpCharset implements SingletonValueRenderable, WithQValue<HttpCharsetRange>, scala.Product, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpCharset(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.collection.immutable.Seq<java.lang.String>
aliases()
static HttpCharset
custom(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)
static scala.util.Try<java.nio.charset.Charset>
findNioCharset(java.lang.String name)
java.lang.Iterable<java.lang.String>
getAliases()
Java APIjava.nio.charset.Charset
nioCharset()
Returns the Charset for this charset if available or throws an exception otherwiseHttpCharsetRange
toRange()
Creates a range from this charset with qValue = 1.java.lang.String
value()
Returns the name of this charset.HttpCharsetRange
withQValue(float qValue)
An alias for toRange(float).-
Methods inherited from class akka.http.javadsl.model.HttpCharset
toRange
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Methods inherited from interface akka.http.impl.util.SingletonValueRenderable
render
-
Methods inherited from interface akka.http.scaladsl.model.WithQValue
withQValue
-
-
-
-
Method Detail
-
custom
public static HttpCharset custom(java.lang.String value, scala.collection.immutable.Seq<java.lang.String> aliases)
-
findNioCharset
public static scala.util.Try<java.nio.charset.Charset> findNioCharset(java.lang.String name)
-
value
public java.lang.String value()
Description copied from class:HttpCharset
Returns the name of this charset.- Specified by:
value
in interfaceSingletonValueRenderable
- Specified by:
value
in classHttpCharset
-
aliases
public scala.collection.immutable.Seq<java.lang.String> aliases()
-
nioCharset
public java.nio.charset.Charset nioCharset()
Returns the Charset for this charset if available or throws an exception otherwise- Specified by:
nioCharset
in classHttpCharset
-
withQValue
public HttpCharsetRange withQValue(float qValue)
Description copied from class:HttpCharset
An alias for toRange(float).- Specified by:
withQValue
in interfaceWithQValue<HttpCharsetRange>
- Specified by:
withQValue
in classHttpCharset
-
toRange
public HttpCharsetRange toRange()
Description copied from class:HttpCharset
Creates a range from this charset with qValue = 1.- Overrides:
toRange
in classHttpCharset
-
getAliases
public java.lang.Iterable<java.lang.String> getAliases()
Java API- Specified by:
getAliases
in classHttpCharset
-
-