public class MediaRange extends Object
Modifier and Type | Method and Description |
---|---|
static MediaRange |
any()
Creates a new MediaRange representing any data.
|
static MediaRange |
anyOf(String type)
Creates a new MediaRange representing any subtype of the given type.
|
static MediaRange |
anyOf(String type,
String suffix)
Creates a new MediaRange representing any subtype of the given type with the given suffix.
|
String |
base()
Returns the base type (i.e.
|
String |
baseStructured()
Returns the base type with optional suffix (i.e.
|
static MediaRange |
of(String text)
Creates a new MediaRange instance.
|
Map<String,String> |
parameters()
Returns the "parameter" definitions from this media range.
|
String |
subtype()
Returns the "subtype" from this media range.
|
String |
suffix()
Returns the "suffix" from this media range.
|
String |
toString() |
String |
type()
Returns the "type" from this media range.
|
public static MediaRange of(String text)
public static MediaRange anyOf(String type)
public static MediaRange anyOf(String type, String suffix)
public static MediaRange any()
public String type()
public String subtype()
public String base()
public String baseStructured()
public String suffix()
public Map<String,String> parameters()
Copyright © 2024 The Cornutum Project. All rights reserved.