| Package | Description |
|---|---|
| com.okta.sdk.impl.http | |
| com.okta.sdk.impl.util |
| 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 | Method and Description |
|---|---|
static MediaType |
MediaType.asMediaType(MimeType mimeType)
Re-create the given mime type as a media type.
|
| Modifier and Type | Method and Description |
|---|---|
static List<MediaType> |
MediaType.asMediaTypes(List<MimeType> mimeTypes)
Re-create the given mime types as media types.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
MimeType.SpecificityComparator<T extends MimeType> |
| 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 Comparator<MimeType> |
MimeTypeUtils.SPECIFICITY_COMPARATOR
Comparator used by
MimeTypeUtils.sortBySpecificity(List). |
| Modifier and Type | Method and Description |
|---|---|
static MimeType |
MimeTypeUtils.parseMimeType(String mimeType)
Parse the given String into a single
MimeType. |
static MimeType |
MimeType.valueOf(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 List<MimeType> |
MimeTypeUtils.parseMimeTypes(String mimeTypes)
Parse the given, comma-separated string into a list of
MimeType objects. |
| Modifier and Type | Method and Description |
|---|---|
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 void |
MimeTypeUtils.sortBySpecificity(List<MimeType> mimeTypes)
Sorts the given list of
MimeType objects by specificity. |
static String |
MimeTypeUtils.toString(Collection<? extends MimeType> mimeTypes)
Return a string representation of the given list of
MimeType objects. |
| Constructor and Description |
|---|
MimeType(MimeType other,
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,
Map<String,String> parameters)
Copy-constructor that copies the type and subtype of the given
MimeType,
and allows for different parameter. |
Copyright © 2017 Okta. All rights reserved.