Package org.jboss.resteasy.util
Class MediaTypeHelper
java.lang.Object
org.jboss.resteasy.util.MediaTypeHelper
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcompareWeight(MediaType one, MediaType two) static booleanequivalent(MediaType m1, MediaType m2) static booleanequivalentParams(MediaType m1, MediaType m2) static MediaTypegetBestMatch(List<MediaType> desired, List<MediaType> provided) static MediaTypegetConsumes(Class declaring, AccessibleObject method) static MediaType[]getProduces(Class declaring, Method method) static MediaType[]getProduces(Class declaring, Method method, MediaType defaultProduces) static floatstatic floatgetQWithParamInfo(MediaType type) static booleanisBlacklisted(MediaType mediaType) static booleanisComposite(String subtype) static booleanisCompositeWildcardSubtype(String subtype) subtypes like application/*+xmlstatic booleanisTextLike(MediaType mediaType) static booleanisWildcardCompositeSubtype(String subtype) subtypes like application/*+xmlparseHeader(String header) static booleansameWeight(MediaType one, MediaType two) static voidsortByWeight(List<MediaType> types)
-
Constructor Details
-
MediaTypeHelper
public MediaTypeHelper()
-
-
Method Details
-
getConsumes
-
getProduces
-
getProduces
-
getQ
-
getQWithParamInfo
-
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
-
sameWeight
-
sortByWeight
-
getBestMatch
-
parseHeader
-
equivalent
-
equivalentParams
-
isTextLike
-
isBlacklisted
-