Uses of Class
com.okta.commons.http.MimeType
-
Packages that use MimeType Package Description com.okta.commons.http -
-
Uses of MimeType in com.okta.commons.http
Classes in com.okta.commons.http with type parameters of type MimeType Modifier and Type Class Description static classMimeType.SpecificityComparator<T extends MimeType>Subclasses of MimeType in com.okta.commons.http Modifier and Type Class Description classMediaTypeA sub-class ofMimeTypethat adds support for quality parameters as defined in the HTTP specification.Fields in com.okta.commons.http declared as MimeType Modifier and Type Field Description static MimeTypeMimeTypeUtils. ALLPublic constant mime type that includes all media ranges (i.e.static MimeTypeMimeTypeUtils. APPLICATION_JSONPublic constant mime type forapplication/json.static MimeTypeMimeTypeUtils. APPLICATION_OCTET_STREAMPublic constant mime type forapplication/octet-stream.static MimeTypeMimeTypeUtils. APPLICATION_XMLPublic constant mime type forapplication/xml.static MimeTypeMimeTypeUtils. IMAGE_GIFPublic constant mime type forimage/gif.static MimeTypeMimeTypeUtils. IMAGE_JPEGPublic constant mime type forimage/jpeg.static MimeTypeMimeTypeUtils. IMAGE_PNGPublic constant mime type forimage/png.static MimeTypeMimeTypeUtils. TEXT_HTMLPublic constant mime type fortext/html.static MimeTypeMimeTypeUtils. TEXT_PLAINPublic constant mime type fortext/plain.static MimeTypeMimeTypeUtils. TEXT_XMLPublic constant mime type fortext/xml.Fields in com.okta.commons.http with type parameters of type MimeType Modifier and Type Field Description static java.util.Comparator<MimeType>MimeTypeUtils. SPECIFICITY_COMPARATORComparator used byMimeTypeUtils.sortBySpecificity(List).Methods in com.okta.commons.http that return MimeType Modifier and Type Method Description static MimeTypeMimeTypeUtils. parseMimeType(java.lang.String mimeType)Parse the given String into a singleMimeType.static MimeTypeMimeType. valueOf(java.lang.String value)Parse the given String value into aMimeTypeobject, with this method name following the 'valueOf' naming convention (as supported byorg.springframework.core.convert.ConversionService.Methods in com.okta.commons.http that return types with arguments of type MimeType Modifier and Type Method Description static java.util.List<MimeType>MimeTypeUtils. parseMimeTypes(java.lang.String mimeTypes)Parse the given, comma-separated string into a list ofMimeTypeobjects.Methods in com.okta.commons.http with parameters of type MimeType Modifier and Type Method Description static MediaTypeMediaType. asMediaType(MimeType mimeType)Re-create the given mime type as a media type.intMimeType. compareTo(MimeType other)Compares thisMediaTypeto another alphabetically.booleanMimeType. includes(MimeType other)Indicate whether thisMediaTypeincludes the given media type.booleanMimeType. isCompatibleWith(MimeType other)Indicate whether thisMediaTypeis compatible with the given media type.Method parameters in com.okta.commons.http with type arguments of type MimeType Modifier and Type Method Description static java.util.List<MediaType>MediaType. asMediaTypes(java.util.List<MimeType> mimeTypes)Re-create the given mime types as media types.static voidMimeTypeUtils. sortBySpecificity(java.util.List<MimeType> mimeTypes)Sorts the given list ofMimeTypeobjects by specificity.static java.lang.StringMimeTypeUtils. toString(java.util.Collection<? extends MimeType> mimeTypes)Return a string representation of the given list ofMimeTypeobjects.Constructors in com.okta.commons.http with parameters of type MimeType Constructor Description MimeType(MimeType other, java.nio.charset.Charset charset)Copy-constructor that copies the type, subtype, parameters of the givenMimeType, 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 givenMimeType, and allows for different parameter.
-