Package akka.http.scaladsl.model
Class HttpCharsetRange
- java.lang.Object
-
- akka.http.javadsl.model.HttpCharsetRange
-
- akka.http.scaladsl.model.HttpCharsetRange
-
- All Implemented Interfaces:
Renderable
,ToStringRenderable
,ValueRenderable
,WithQValue<HttpCharsetRange>
- Direct Known Subclasses:
HttpCharsetRange.$times
,HttpCharsetRange.One
public abstract class HttpCharsetRange extends HttpCharsetRange implements ValueRenderable, WithQValue<HttpCharsetRange>
A charset range as encountered inAccept-Charset
. Can either be a single charset, or*
if all charsets are supported and optionally a qValue for selecting this choice.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpCharsetRange.$times
static class
HttpCharsetRange.$times$
static class
HttpCharsetRange.One
static class
HttpCharsetRange.One$
-
Constructor Summary
Constructors Constructor Description HttpCharsetRange()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static HttpCharsetRange
apply(HttpCharset charset)
static HttpCharsetRange
apply(HttpCharset charset, float qValue)
boolean
matches(HttpCharset charset)
Java APIabstract boolean
matches(HttpCharset charset)
abstract float
qValue()
The qValue for this range.-
Methods inherited from class akka.http.javadsl.model.HttpCharsetRange
withQValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.http.impl.util.Renderable
render
-
Methods inherited from interface akka.http.impl.util.ToStringRenderable
toString
-
Methods inherited from interface akka.http.impl.util.ValueRenderable
value
-
Methods inherited from interface akka.http.scaladsl.model.WithQValue
withQValue, withQValue
-
-
-
-
Method Detail
-
apply
public static HttpCharsetRange apply(HttpCharset charset)
-
apply
public static HttpCharsetRange apply(HttpCharset charset, float qValue)
-
qValue
public abstract float qValue()
Description copied from class:HttpCharsetRange
The qValue for this range.- Specified by:
qValue
in classHttpCharsetRange
-
matches
public abstract boolean matches(HttpCharset charset)
-
matches
public boolean matches(HttpCharset charset)
Java API- Specified by:
matches
in classHttpCharsetRange
-
-