Class MediaRanges.PredefinedMediaRange

java.lang.Object
akka.http.javadsl.model.MediaRange
akka.http.scaladsl.model.MediaRange
akka.http.scaladsl.model.MediaRanges.PredefinedMediaRange
All Implemented Interfaces:
LazyValueBytesRenderable, Renderable, WithQValue<MediaRange>, Serializable, scala.Equals, scala.Product
Enclosing class:
MediaRanges

public abstract static class MediaRanges.PredefinedMediaRange extends MediaRange implements LazyValueBytesRenderable, scala.Product, Serializable
See Also:
  • Constructor Details

    • PredefinedMediaRange

      public PredefinedMediaRange(String value)
  • Method Details

    • value

      public String value()
      Specified by:
      value in interface LazyValueBytesRenderable
      Specified by:
      value in class MediaRange
    • mainType

      public String mainType()
      Description copied from class: MediaRange
      Returns the main-type this media-range matches.
      Specified by:
      mainType in class MediaRange
    • params

      public scala.collection.immutable.Map<String,scala.runtime.Nothing$> params()
    • qValue

      public float qValue()
      Description copied from class: MediaRange
      Returns the qValue of this media-range.
      Specified by:
      qValue in class MediaRange
    • withParams

      public MediaRange withParams(scala.collection.immutable.Map<String,String> params)
      Description copied from class: MediaRange
      Returns a copy of this instance with the params replaced by the given ones. If the given map contains a "q" value the qValue member is (also) updated.
      Specified by:
      withParams in class MediaRange
      Parameters:
      params - (undocumented)
      Returns:
      (undocumented)
    • withQValue

      public MediaRange withQValue(float qValue)
      Description copied from class: MediaRange
      Returns a copy of this instance with a changed qValue.
      Specified by:
      withQValue in interface WithQValue<MediaRange>
      Specified by:
      withQValue in class MediaRange