Package org.apache.abdera.util
Class MimeTypeHelper
java.lang.Object
org.apache.abdera.util.MimeTypeHelper
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Utilities for working with MIME Media Types
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intDeprecated.Compare two media types according to their relative level of specificitystatic intcompare(javax.activation.MimeType mt1, javax.activation.MimeType mt2) Deprecated.Compare two media types according to their relative level of specificitystatic String[]Deprecated.This will take an array of media types and will condense them based on wildcards, etc.static StringgetCharset(String mediatype) Deprecated.static Comparator<String> Deprecated.Returns a Comparator that can be used to compare and sort MIME media types according to their level of specificity (e.g.getMimeType(T base) Deprecated.Returns the appropriate media type for the given Abdera basestatic booleanDeprecated.Returns true if media type a matches application/atomsrv+xmlstatic booleanDeprecated.Returns true if media type a matches application/atom+xmlstatic booleanDeprecated.Returns true if media type a specifically identifies an Atom entry documentstatic booleanDeprecated.Returns true if media type a explicitly identifies an Atom feed documentstatic booleanDeprecated.Returns true if media type a matches media type bstatic booleanisMatch(javax.activation.MimeType a, javax.activation.MimeType b) Deprecated.static booleanisMatch(javax.activation.MimeType a, javax.activation.MimeType b, boolean includeparams) Deprecated.Returns true if media type a matches media type bstatic booleanisMimeType(String a) Deprecated.Returns true if this is a valid media typestatic booleanDeprecated.Returns true if media type is a multiparted file.static booleanDeprecated.Returns true if media type a matches text/*static booleanDeprecated.Returns true if media type a matches application/xml, text/xml or application/*+xml
-
Constructor Details
-
MimeTypeHelper
public MimeTypeHelper()Deprecated.
-
-
Method Details
-
getCharset
Deprecated. -
isMatch
Deprecated.Returns true if media type a matches media type b -
isMatch
public static boolean isMatch(javax.activation.MimeType a, javax.activation.MimeType b) Deprecated. -
isMatch
public static boolean isMatch(javax.activation.MimeType a, javax.activation.MimeType b, boolean includeparams) Deprecated.Returns true if media type a matches media type b -
isApp
Deprecated.Returns true if media type a matches application/atomsrv+xml -
isAtom
Deprecated.Returns true if media type a matches application/atom+xml -
isEntry
Deprecated.Returns true if media type a specifically identifies an Atom entry document -
isFeed
Deprecated.Returns true if media type a explicitly identifies an Atom feed document -
isXml
Deprecated.Returns true if media type a matches application/xml, text/xml or application/*+xml -
isText
Deprecated.Returns true if media type a matches text/* -
isMimeType
Deprecated.Returns true if this is a valid media type -
getMimeType
Deprecated.Returns the appropriate media type for the given Abdera base -
condense
Deprecated.This will take an array of media types and will condense them based on wildcards, etc. For instance, condense("image/png", "image/jpg", "image/*") condenses to [image/*] condense("application/atom", "application/*", "image/png", "image/*") condenses to [application/*, image/*] -
getComparator
Deprecated.Returns a Comparator that can be used to compare and sort MIME media types according to their level of specificity (e.g. text/* is less specific than text/plain and would appear first in a sorted list) -
compare
public static int compare(javax.activation.MimeType mt1, javax.activation.MimeType mt2) Deprecated.Compare two media types according to their relative level of specificity -
compare
Deprecated.Compare two media types according to their relative level of specificity -
isMultipart
Deprecated.Returns true if media type is a multiparted file.
-