Class MediaRange.One
java.lang.Object
org.apache.pekko.http.javadsl.model.MediaRange
org.apache.pekko.http.scaladsl.model.MediaRange
org.apache.pekko.http.scaladsl.model.MediaRange.One
- All Implemented Interfaces:
- Serializable,- Renderable,- ToStringRenderable,- ValueRenderable,- WithQValue<MediaRange>,- scala.Equals,- scala.Product
- Enclosing class:
- MediaRange
public static final class MediaRange.One
extends MediaRange
implements ValueRenderable, scala.Product, Serializable
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.MediaRangeMediaRange.One, MediaRange.One$
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanisAudio()booleanisImage()booleanbooleanbooleanisText()booleanisVideo()mainType()Returns the main-type this media-range matches.booleanparams()floatqValue()Returns the qValue of this media-range.render(R r) withParams(scala.collection.immutable.Map<String, String> params) Returns a copy of this instance with the params replaced by the given ones.withQValue(float qValue) Returns a copy of this instance with a changed qValue.Methods inherited from class org.apache.pekko.http.scaladsl.model.MediaRangeapply, apply, custom, getParams, isWildcard, matches, splitOffQValue, value, withCharsetRangeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderabletoStringMethods inherited from interface org.apache.pekko.http.impl.util.ValueRenderablevalueMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValuewithQValue
- 
Constructor Details- 
One
 
- 
- 
Method Details- 
mediaType
- 
qValuepublic float qValue()Description copied from class:MediaRangeReturns the qValue of this media-range.- Specified by:
- qValuein class- MediaRange
 
- 
mainTypeDescription copied from class:MediaRangeReturns the main-type this media-range matches.- Specified by:
- mainTypein class- MediaRange
 
- 
params- Specified by:
- paramsin class- MediaRange
 
- 
isApplicationpublic boolean isApplication()- Overrides:
- isApplicationin class- MediaRange
 
- 
isAudiopublic boolean isAudio()- Overrides:
- isAudioin class- MediaRange
 
- 
isImagepublic boolean isImage()- Overrides:
- isImagein class- MediaRange
 
- 
isMessagepublic boolean isMessage()- Overrides:
- isMessagein class- MediaRange
 
- 
isMultipartpublic boolean isMultipart()- Overrides:
- isMultipartin class- MediaRange
 
- 
isTextpublic boolean isText()- Overrides:
- isTextin class- MediaRange
 
- 
isVideopublic boolean isVideo()- Overrides:
- isVideoin class- MediaRange
 
- 
matches- Specified by:
- matchesin class- MediaRange
 
- 
withParamsDescription copied from class:MediaRangeReturns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value theqValuemember is (also) updated.- Specified by:
- withParamsin class- MediaRange
- Parameters:
- params- (undocumented)
- Returns:
- (undocumented)
 
- 
withQValueDescription copied from class:MediaRangeReturns a copy of this instance with a changed qValue.- Specified by:
- withQValuein interface- WithQValue<MediaRange>
- Specified by:
- withQValuein class- MediaRange
 
- 
render- Specified by:
- renderin interface- Renderable
 
 
-