| Package | Description |
|---|---|
| org.kocakosm.pitaya.net |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaType.ANY_APPLICATION_TYPE
application/* |
static MediaType |
MediaType.ANY_AUDIO_TYPE
audio/* |
static MediaType |
MediaType.ANY_IMAGE_TYPE
image/* |
static MediaType |
MediaType.ANY_TEXT_TYPE
text/* |
static MediaType |
MediaType.ANY_TYPE
*/* |
static MediaType |
MediaType.ANY_VIDEO_TYPE
video/* |
static MediaType |
MediaType.CSS
text/css |
static MediaType |
MediaType.GIF
image/gif |
static MediaType |
MediaType.HTML
text/html |
static MediaType |
MediaType.JPEG
image/jpeg |
static MediaType |
MediaType.JSON
application/json |
static MediaType |
MediaType.OCTET_STREAM
application/octet-stream |
static MediaType |
MediaType.PLAIN_TEXT
text/plain |
static MediaType |
MediaType.PNG
image/png |
static MediaType |
MediaType.XML
application/xml |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.create(String type,
String subtype)
Creates a new
MediaType with the given type and subtype. |
static MediaType |
MediaType.parse(String input)
Parses a
MediaType from its String representation. |
MediaType |
MediaType.withCharset(Charset charset)
Returns a new
MediaType instance similar to this one but with
the charset parameter set to the name of
the given charset. |
MediaType |
MediaType.withoutParameter(String attribute)
Returns a new
MediaType instance similar to this one but
without the specified parameter. |
MediaType |
MediaType.withoutParameters()
Returns a new
MediaType instance with the same type and
subtype as this instance but without any parameters. |
MediaType |
MediaType.withParameter(String attribute,
String value)
Returns a new
MediaType instance similar to this one but with
the specified parameter set to the given value. |
MediaType |
MediaType.withParameters(Map<String,String> parameters)
Returns a new
MediaType instance having the same type and
subtype as this one but whose parameters is the "union" of this
instances' parameters with the given ones (the given parameters have
precedence over this instance's parameters). |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.is(MediaType range)
Returns whether this media type is within the specified media range.
|
Copyright © 2012–2015. All rights reserved.