public final class MediaType extends Object
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
FORM_URL_ENCODED |
static MediaType |
JSON |
static MediaType |
MULTIPART |
static Comparator<MediaType> |
QUALITY_COMPARATOR |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
String |
getCharset(String defaultCharset) |
String |
getParameter(String name) |
Map<String,String> |
getParameters() |
String |
getPureSubtype() |
double |
getQualityParameter() |
String |
getSubtype() |
String |
getSuffix() |
String |
getType() |
int |
hashCode() |
boolean |
isCompatibleWith(MediaType other) |
boolean |
isWildcardSubtype() |
boolean |
isWildcardType() |
int |
similarity(MediaType other) |
String |
toString() |
static MediaType |
valueOf(String mimeType) |
public static final Comparator<MediaType> QUALITY_COMPARATOR
public static final MediaType JSON
public static final MediaType FORM_URL_ENCODED
public static final MediaType MULTIPART
public double getQualityParameter()
public boolean isWildcardType()
public boolean isWildcardSubtype()
public int similarity(MediaType other)
public boolean isCompatibleWith(MediaType other)
public String getType()
public String getSubtype()
public String getPureSubtype()
public String getSuffix()
Copyright © 2014–2018. All rights reserved.