| Package | Description |
|---|---|
| com.okta.commons.http |
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeType.SpecificityComparator<T extends MimeType> |
| Modifier and Type | Class and Description |
|---|---|
class |
MediaType
A sub-class of
MimeType that adds support for quality parameters as defined
in the HTTP specification. |
| Modifier and Type | Field and Description |
|---|---|
static MimeType |
MimeTypeUtils.ALL
Public constant mime type that includes all media ranges (i.e.
|
static MimeType |
MimeTypeUtils.APPLICATION_JSON
Public constant mime type for
application/json. |
static MimeType |
MimeTypeUtils.APPLICATION_OCTET_STREAM
Public constant mime type for
application/octet-stream. |
static MimeType |
MimeTypeUtils.APPLICATION_XML
Public constant mime type for
application/xml. |
static MimeType |
MimeTypeUtils.IMAGE_GIF
Public constant mime type for
image/gif. |
static MimeType |
MimeTypeUtils.IMAGE_JPEG
Public constant mime type for
image/jpeg. |
static MimeType |
MimeTypeUtils.IMAGE_PNG
Public constant mime type for
image/png. |
static MimeType |
MimeTypeUtils.TEXT_HTML
Public constant mime type for
text/html. |
static MimeType |
MimeTypeUtils.TEXT_PLAIN
Public constant mime type for
text/plain. |
static MimeType |
MimeTypeUtils.TEXT_XML
Public constant mime type for
text/xml. |
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<MimeType> |
MimeTypeUtils.SPECIFICITY_COMPARATOR
Comparator used by
MimeTypeUtils.sortBySpecificity(List). |
| Modifier and Type | Method and Description |
|---|---|
static MimeType |
MimeTypeUtils.parseMimeType(java.lang.String mimeType)
Parse the given String into a single
MimeType. |
static MimeType |
MimeType.valueOf(java.lang.String value)
Parse the given String value into a
MimeType object,
with this method name following the 'valueOf' naming convention
(as supported by org.springframework.core.convert.ConversionService. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<MimeType> |
MimeTypeUtils.parseMimeTypes(java.lang.String mimeTypes)
Parse the given, comma-separated string into a list of
MimeType objects. |
| Modifier and Type | Method and Description |
|---|---|
static MediaType |
MediaType.asMediaType(MimeType mimeType)
Re-create the given mime type as a media type.
|
int |
MimeType.compareTo(MimeType other)
Compares this
MediaType to another alphabetically. |
boolean |
MimeType.includes(MimeType other)
Indicate whether this
MediaType includes the given media type. |
boolean |
MimeType.isCompatibleWith(MimeType other)
Indicate whether this
MediaType is compatible with the given media type. |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<MediaType> |
MediaType.asMediaTypes(java.util.List<MimeType> mimeTypes)
Re-create the given mime types as media types.
|
static void |
MimeTypeUtils.sortBySpecificity(java.util.List<MimeType> mimeTypes)
Sorts the given list of
MimeType objects by specificity. |
static java.lang.String |
MimeTypeUtils.toString(java.util.Collection<? extends MimeType> mimeTypes)
Return a string representation of the given list of
MimeType objects. |
| Constructor and Description |
|---|
MimeType(MimeType other,
java.nio.charset.Charset charset)
Copy-constructor that copies the type, subtype, parameters of the given
MimeType,
and allows to set the specified character set. |
MimeType(MimeType other,
java.util.Map<java.lang.String,java.lang.String> parameters)
Copy-constructor that copies the type and subtype of the given
MimeType,
and allows for different parameter. |
Copyright © 2018-2021 Okta. All Rights Reserved.