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 HttpCharsetcustom(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.CharsetnioCharset()Returns the Charset for this charset if available or throws an exception otherwiseHttpCharsetRangetoRange()Creates a range from this charset with qValue = 1.java.lang.Stringvalue()Returns the name of this charset.HttpCharsetRangewithQValue(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:HttpCharsetReturns the name of this charset.- Specified by:
valuein interfaceSingletonValueRenderable- Specified by:
valuein 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:
nioCharsetin classHttpCharset
-
withQValue
public HttpCharsetRange withQValue(float qValue)
Description copied from class:HttpCharsetAn alias for toRange(float).- Specified by:
withQValuein interfaceWithQValue<HttpCharsetRange>- Specified by:
withQValuein classHttpCharset
-
toRange
public HttpCharsetRange toRange()
Description copied from class:HttpCharsetCreates a range from this charset with qValue = 1.- Overrides:
toRangein classHttpCharset
-
getAliases
public java.lang.Iterable<java.lang.String> getAliases()
Java API- Specified by:
getAliasesin classHttpCharset
-
-