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 classHttpCharsetRange.$timesstatic classHttpCharsetRange.$times$static classHttpCharsetRange.Onestatic classHttpCharsetRange.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 HttpCharsetRangeapply(HttpCharset charset)static HttpCharsetRangeapply(HttpCharset charset, float qValue)booleanmatches(HttpCharset charset)Java APIabstract booleanmatches(HttpCharset charset)abstract floatqValue()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:HttpCharsetRangeThe qValue for this range.- Specified by:
qValuein classHttpCharsetRange
-
matches
public abstract boolean matches(HttpCharset charset)
-
matches
public boolean matches(HttpCharset charset)
Java API- Specified by:
matchesin classHttpCharsetRange
-
-