Package akka.http.javadsl.model
Class MediaRanges
- java.lang.Object
-
- akka.http.javadsl.model.MediaRanges
-
public final class MediaRanges extends java.lang.Object
Contains a set of predefined media-ranges and static methods to create custom ones.
-
-
Field Summary
Fields Modifier and Type Field Description static MediaRange
ALL
static MediaRange
ALL_APPLICATION
static MediaRange
ALL_AUDIO
static MediaRange
ALL_IMAGE
static MediaRange
ALL_MESSAGE
static MediaRange
ALL_MULTIPART
static MediaRange
ALL_TEXT
static MediaRange
ALL_VIDEO
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MediaRange
create(MediaType mediaType)
Creates a custom universal media-range for a given main-type.static MediaRange
create(MediaType mediaType, float qValue)
Creates a custom universal media-range for a given main-type and qValue.static MediaRange
custom(java.lang.String mainType, java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a custom universal media-range for a given main-type and a Map of parameters.
-
-
-
Field Detail
-
ALL
public static final MediaRange ALL
-
ALL_APPLICATION
public static final MediaRange ALL_APPLICATION
-
ALL_AUDIO
public static final MediaRange ALL_AUDIO
-
ALL_IMAGE
public static final MediaRange ALL_IMAGE
-
ALL_MESSAGE
public static final MediaRange ALL_MESSAGE
-
ALL_MULTIPART
public static final MediaRange ALL_MULTIPART
-
ALL_TEXT
public static final MediaRange ALL_TEXT
-
ALL_VIDEO
public static final MediaRange ALL_VIDEO
-
-
Method Detail
-
create
public static MediaRange create(MediaType mediaType)
Creates a custom universal media-range for a given main-type.
-
custom
public static MediaRange custom(java.lang.String mainType, java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a custom universal media-range for a given main-type and a Map of parameters.
-
create
public static MediaRange create(MediaType mediaType, float qValue)
Creates a custom universal media-range for a given main-type and qValue.
-
-