public final class MediaType extends Object
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
ANY |
static MediaType |
CSV |
static MediaType |
HTML |
static MediaType |
JSON |
static MediaType |
OCTET_STREAM |
static MediaType |
PLAIN_TEXT |
static MediaType |
PROTOBUF |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static MediaType |
from(String typeString)
Returns one of the static members (OCTET_STREAM, CSV, etc) if this is a known type or a new object if the type is
unknown.
|
int |
hashCode() |
boolean |
is(String typeString) |
String |
toString() |
public static final MediaType OCTET_STREAM
public static final MediaType CSV
public static final MediaType HTML
public static final MediaType JSON
public static final MediaType PROTOBUF
public static final MediaType PLAIN_TEXT
public static final MediaType ANY
public boolean is(String typeString)
Copyright © 2019 Space Applications Services. All rights reserved.