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 Summary
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.MediaRange
MediaRange.One, MediaRange.One$ -
Constructor Summary
Constructors -
Method Summary
Modifier 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.MediaRange
apply, apply, custom, getParams, isWildcard, matches, splitOffQValue, value, withCharsetRangeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefixMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderable
toStringMethods inherited from interface org.apache.pekko.http.impl.util.ValueRenderable
valueMethods inherited from interface org.apache.pekko.http.scaladsl.model.WithQValue
withQValue
-
Constructor Details
-
One
-
-
Method Details
-
mediaType
-
qValue
public float qValue()Description copied from class:MediaRangeReturns the qValue of this media-range.- Specified by:
qValuein classMediaRange
-
mainType
Description copied from class:MediaRangeReturns the main-type this media-range matches.- Specified by:
mainTypein classMediaRange
-
params
- Specified by:
paramsin classMediaRange
-
isApplication
public boolean isApplication()- Overrides:
isApplicationin classMediaRange
-
isAudio
public boolean isAudio()- Overrides:
isAudioin classMediaRange
-
isImage
public boolean isImage()- Overrides:
isImagein classMediaRange
-
isMessage
public boolean isMessage()- Overrides:
isMessagein classMediaRange
-
isMultipart
public boolean isMultipart()- Overrides:
isMultipartin classMediaRange
-
isText
public boolean isText()- Overrides:
isTextin classMediaRange
-
isVideo
public boolean isVideo()- Overrides:
isVideoin classMediaRange
-
matches
- Specified by:
matchesin classMediaRange
-
withParams
Description 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 classMediaRange- Parameters:
params- (undocumented)- Returns:
- (undocumented)
-
withQValue
Description copied from class:MediaRangeReturns a copy of this instance with a changed qValue.- Specified by:
withQValuein interfaceWithQValue<MediaRange>- Specified by:
withQValuein classMediaRange
-
render
- Specified by:
renderin interfaceRenderable
-