Class MediaTypeHelper
java.lang.Object
org.jboss.resteasy.util.MediaTypeHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareWeight
(jakarta.ws.rs.core.MediaType one, jakarta.ws.rs.core.MediaType two) static boolean
equivalent
(jakarta.ws.rs.core.MediaType m1, jakarta.ws.rs.core.MediaType m2) static boolean
equivalentParams
(jakarta.ws.rs.core.MediaType m1, jakarta.ws.rs.core.MediaType m2) static jakarta.ws.rs.core.MediaType
getBestMatch
(List<jakarta.ws.rs.core.MediaType> desired, List<jakarta.ws.rs.core.MediaType> provided) static jakarta.ws.rs.core.MediaType
getConsumes
(Class declaring, AccessibleObject method) static jakarta.ws.rs.core.MediaType[]
getProduces
(Class declaring, Method method) static jakarta.ws.rs.core.MediaType[]
getProduces
(Class declaring, Method method, jakarta.ws.rs.core.MediaType defaultProduces) static float
getQ
(jakarta.ws.rs.core.MediaType type) static float
getQWithParamInfo
(jakarta.ws.rs.core.MediaType type) static boolean
isBlacklisted
(jakarta.ws.rs.core.MediaType mediaType) static boolean
isComposite
(String subtype) static boolean
isCompositeWildcardSubtype
(String subtype) subtypes like application/*+xmlstatic boolean
isTextLike
(jakarta.ws.rs.core.MediaType mediaType) static boolean
isWildcardCompositeSubtype
(String subtype) subtypes like application/*+xmlstatic List
<jakarta.ws.rs.core.MediaType> parseHeader
(String header) static boolean
sameWeight
(jakarta.ws.rs.core.MediaType one, jakarta.ws.rs.core.MediaType two) static void
sortByWeight
(List<jakarta.ws.rs.core.MediaType> types)
-
Constructor Details
-
MediaTypeHelper
public MediaTypeHelper()
-
-
Method Details
-
getConsumes
-
getProduces
-
getProduces
-
getQ
public static float getQ(jakarta.ws.rs.core.MediaType type) -
getQWithParamInfo
public static float getQWithParamInfo(jakarta.ws.rs.core.MediaType type) -
isCompositeWildcardSubtype
subtypes like application/*+xml- Parameters:
subtype
- subtype- Returns:
- true if subtype is composite
-
isWildcardCompositeSubtype
subtypes like application/*+xml- Parameters:
subtype
- subtype- Returns:
- true if subtype is wildcard composite
-
isComposite
-
compareWeight
public static int compareWeight(jakarta.ws.rs.core.MediaType one, jakarta.ws.rs.core.MediaType two) -
sameWeight
public static boolean sameWeight(jakarta.ws.rs.core.MediaType one, jakarta.ws.rs.core.MediaType two) -
sortByWeight
-
getBestMatch
-
parseHeader
-
equivalent
public static boolean equivalent(jakarta.ws.rs.core.MediaType m1, jakarta.ws.rs.core.MediaType m2) -
equivalentParams
public static boolean equivalentParams(jakarta.ws.rs.core.MediaType m1, jakarta.ws.rs.core.MediaType m2) -
isTextLike
public static boolean isTextLike(jakarta.ws.rs.core.MediaType mediaType) -
isBlacklisted
public static boolean isBlacklisted(jakarta.ws.rs.core.MediaType mediaType)
-