Uses of Class
com.aspectran.web.support.http.MediaType
-
Packages that use MediaType Package Description com.aspectran.web.activity.request com.aspectran.web.activity.response com.aspectran.web.adapter Contains a variant of the adapter interface for web application.com.aspectran.web.support.http -
-
Uses of MediaType in com.aspectran.web.activity.request
Fields in com.aspectran.web.activity.request with type parameters of type MediaType Modifier and Type Field Description static java.util.List<MediaType>RequestHeaderParser. MEDIA_TYPE_ALL_LISTA singleton list withALLthat is returned fromRequestHeaderParser.resolveAcceptContentTypes(com.aspectran.core.adapter.RequestAdapter)when no specific media types are requested.Methods in com.aspectran.web.activity.request that return types with arguments of type MediaType Modifier and Type Method Description static java.util.List<MediaType>RequestHeaderParser. resolveAcceptContentTypes(com.aspectran.core.adapter.RequestAdapter requestAdapter)Methods in com.aspectran.web.activity.request with parameters of type MediaType Modifier and Type Method Description static booleanWebRequestBodyParser. isMultipartForm(com.aspectran.core.context.rule.type.MethodType requestMethod, MediaType mediaType)static booleanWebRequestBodyParser. isURLEncodedForm(MediaType mediaType)static <T extends com.aspectran.core.util.apon.Parameters>
TWebRequestBodyParser. parseBodyAsParameters(com.aspectran.core.adapter.RequestAdapter requestAdapter, MediaType mediaType, java.lang.Class<T> requiredType) -
Uses of MediaType in com.aspectran.web.activity.response
Methods in com.aspectran.web.activity.response that return MediaType Modifier and Type Method Description protected MediaTypeAbstractRestResponse. determineContentType(com.aspectran.core.activity.Activity activity)protected abstract MediaTypeAbstractRestResponse. getContentTypeByPathExtension(java.lang.String extension)protected MediaTypeDefaultRestResponse. getContentTypeByPathExtension(java.lang.String extension)MediaTypeAbstractRestResponse. getDefaultContentType()MediaTypeRestResponse. getDefaultContentType()Methods in com.aspectran.web.activity.response that return types with arguments of type MediaType Modifier and Type Method Description protected abstract java.util.List<MediaType>AbstractRestResponse. getSupportedContentTypes()protected java.util.List<MediaType>DefaultRestResponse. getSupportedContentTypes()Methods in com.aspectran.web.activity.response with parameters of type MediaType Modifier and Type Method Description RestResponseAbstractRestResponse. defaultContentType(MediaType defaultContentType)RestResponseRestResponse. defaultContentType(MediaType defaultContentType)voidAbstractRestResponse. setDefaultContentType(MediaType defaultContentType)voidRestResponse. setDefaultContentType(MediaType defaultContentType)protected voidDefaultRestResponse. transformByContentType(com.aspectran.core.activity.Activity activity, java.lang.String encoding, MediaType contentType) -
Uses of MediaType in com.aspectran.web.adapter
Methods in com.aspectran.web.adapter that return MediaType Modifier and Type Method Description MediaTypeHttpServletRequestAdapter. getMediaType()Gets the media type value included in the Content-Type header. -
Uses of MediaType in com.aspectran.web.support.http
Classes in com.aspectran.web.support.http with type parameters of type MediaType Modifier and Type Class Description static classMediaType.SpecificityComparator<T extends MediaType>Comparator to sortMediaTypesin order of specificity.Fields in com.aspectran.web.support.http declared as MediaType Modifier and Type Field Description static MediaTypeMediaType. ALLPublic constant media type that includes all media ranges (i.e.static MediaTypeMediaTypeUtils. ALLPublic constant media type that includes all media ranges (i.e.static MediaTypeMediaType. APPLICATION_APONPublic constant media type forapplication/apon.static MediaTypeMediaType. APPLICATION_ATOM_XMLPublic constant media type forapplication/atom+xml.static MediaTypeMediaType. APPLICATION_CBORPublic constant media type forapplication/cbor.static MediaTypeMediaType. APPLICATION_FORM_URLENCODEDPublic constant media type forapplication/x-www-form-urlencoded.static MediaTypeMediaType. APPLICATION_GRAPHQLPublic constant media type forapplication/graphql.static MediaTypeMediaType. APPLICATION_JSONPublic constant media type forapplication/json.static MediaTypeMediaTypeUtils. APPLICATION_JSONPublic constant media type forapplication/json.static MediaTypeMediaType. APPLICATION_OCTET_STREAMPublic constant media type forapplication/octet-stream.static MediaTypeMediaTypeUtils. APPLICATION_OCTET_STREAMPublic constant media type forapplication/octet-stream.static MediaTypeMediaType. APPLICATION_PDFPublic constant media type forapplication/pdf.static MediaTypeMediaType. APPLICATION_PROBLEM_JSONPublic constant media type forapplication/problem+json.static MediaTypeMediaType. APPLICATION_PROBLEM_XMLPublic constant media type forapplication/problem+xml.static MediaTypeMediaType. APPLICATION_RSS_XMLPublic constant media type forapplication/rss+xml.static MediaTypeMediaType. APPLICATION_STREAM_JSONPublic constant media type forapplication/stream+json.static MediaTypeMediaType. APPLICATION_XHTML_XMLPublic constant media type forapplication/xhtml+xml.static MediaTypeMediaType. APPLICATION_XMLPublic constant media type forapplication/xml.static MediaTypeMediaTypeUtils. APPLICATION_XMLPublic constant media type forapplication/xml.static MediaTypeMediaType. IMAGE_GIFPublic constant media type forimage/gif.static MediaTypeMediaTypeUtils. IMAGE_GIFPublic constant media type forimage/gif.static MediaTypeMediaType. IMAGE_JPEGPublic constant media type forimage/jpeg.static MediaTypeMediaTypeUtils. IMAGE_JPEGPublic constant media type forimage/jpeg.static MediaTypeMediaType. IMAGE_PNGPublic constant media type forimage/png.static MediaTypeMediaTypeUtils. IMAGE_PNGPublic constant media type forimage/png.static MediaTypeMediaType. MULTIPART_FORM_DATAPublic constant media type formultipart/form-data.static MediaTypeMediaType. TEXT_EVENT_STREAMPublic constant media type fortext/event-stream.static MediaTypeMediaType. TEXT_HTMLPublic constant media type fortext/html.static MediaTypeMediaTypeUtils. TEXT_HTMLPublic constant media type fortext/html.static MediaTypeMediaType. TEXT_MARKDOWNPublic constant media type fortext/markdown.static MediaTypeMediaType. TEXT_PLAINPublic constant media type fortext/plain.static MediaTypeMediaTypeUtils. TEXT_PLAINPublic constant media type fortext/plain.static MediaTypeMediaType. TEXT_XMLPublic constant media type fortext/xml.static MediaTypeMediaTypeUtils. TEXT_XMLPublic constant media type fortext/xml.Fields in com.aspectran.web.support.http with type parameters of type MediaType Modifier and Type Field Description static java.util.Comparator<MediaType>MediaType. QUALITY_VALUE_COMPARATORComparator used bysortByQualityValue(List).static java.util.Comparator<MediaType>MediaType. SPECIFICITY_COMPARATORComparator used bysortBySpecificity(List).static java.util.Comparator<MediaType>MediaTypeUtils. SPECIFICITY_COMPARATORComparator used byMediaTypeUtils.sortBySpecificity(List).Methods in com.aspectran.web.support.http that return MediaType Modifier and Type Method Description MediaTypeMediaType. copyQualityValue(MediaType mediaType)Return a replica of this instance with the quality value of the givenMediaType.MediaTypeHttpMediaTypeNotSupportedException. getContentType()Return the HTTP request content type method that caused the failure.static MediaTypeMediaType. parseMediaType(java.lang.String mediaType)Parse the given String into a singleMediaType.static MediaTypeMediaTypeUtils. parseMediaType(java.lang.String mediaType)Parse the given String into a singleMediaType.MediaTypeMediaType. removeQualityValue()Return a replica of this instance with its quality value removed.static MediaTypeMediaType. valueOf(java.lang.String value)Parse the given String value into aMediaTypeobject, with this method name following the 'valueOf' naming convention.Methods in com.aspectran.web.support.http that return types with arguments of type MediaType Modifier and Type Method Description java.util.List<MediaType>HttpMediaTypeException. getSupportedMediaTypes()Return the list of supported media types.static java.util.List<MediaType>MediaType. parseMediaTypes(java.lang.String mediaTypes)Parse the comma-separated string into a list ofMediaTypeobjects.static java.util.List<MediaType>MediaType. parseMediaTypes(java.util.List<java.lang.String> mediaTypes)Parse the given list of (potentially) comma-separated strings into a list ofMediaTypeobjects.static java.util.List<MediaType>MediaTypeUtils. parseMediaTypes(java.lang.String mediaTypes)Parse the comma-separated string into a list ofMediaTypeobjects.Methods in com.aspectran.web.support.http with parameters of type MediaType Modifier and Type Method Description intMediaType. compareTo(MediaType other)Compares this Media Type to another alphabetically.MediaTypeMediaType. copyQualityValue(MediaType mediaType)Return a replica of this instance with the quality value of the givenMediaType.booleanMediaType. equalsTypeAndSubtype(MediaType other)Similar toequals(Object)but based on the type and subtype only, i.e.booleanMediaType. includes(MediaType other)Indicate whether thisMediaTypeincludes the given media type.booleanMediaType. isCompatibleWith(MediaType other)Indicate whether thisMediaTypeis compatible with the given media type.Method parameters in com.aspectran.web.support.http with type arguments of type MediaType Modifier and Type Method Description booleanMediaType. isPresentIn(java.util.Collection<MediaType> MediaTypes)UnlikeCollection.contains(Object)which relies onequals(Object), this method only checks the type and the subtype, but otherwise ignores parameters.static voidMediaType. sortByQualityValue(java.util.List<MediaType> mediaTypes)Sorts the given list ofMediaTypeobjects by quality value.static voidMediaType. sortBySpecificity(java.util.List<MediaType> mediaTypes)Sorts the given list ofMediaTypeobjects by specificity.static voidMediaTypeUtils. sortBySpecificity(java.util.List<MediaType> mediaTypes)Sorts the given list ofMediaTypeobjects by specificity.static voidMediaType. sortBySpecificityAndQuality(java.util.List<MediaType> mediaTypes)Sorts the given list ofMediaTypeobjects by specificity as the primary criteria and quality value the secondary.static java.lang.StringMediaType. toString(java.util.Collection<MediaType> mediaTypes)Return a string representation of the given list ofMediaTypeobjects.static java.lang.StringMediaTypeUtils. toString(java.util.Collection<MediaType> mediaTypes)Return a string representation of the given list ofMediaTypeobjects.Constructors in com.aspectran.web.support.http with parameters of type MediaType Constructor Description HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes)Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes, java.lang.String msg)Create a new HttpMediaTypeNotSupportedException.MediaType(MediaType other, java.nio.charset.Charset charset)Copy-constructor that copies the type, subtype and parameters of the givenMediaType, and allows to set the specified character set.MediaType(MediaType other, java.util.Map<java.lang.String,java.lang.String> parameters)Copy-constructor that copies the type and subtype of the givenMediaType, and allows for different parameter.Constructor parameters in com.aspectran.web.support.http with type arguments of type MediaType Constructor Description HttpMediaTypeException(java.lang.String message, java.util.List<MediaType> supportedMediaTypes)Create a new HttpMediaTypeException with a list of supported media types.HttpMediaTypeNotAcceptableException(java.util.List<MediaType> supportedMediaTypes)Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes)Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(MediaType contentType, java.util.List<MediaType> supportedMediaTypes, java.lang.String msg)Create a new HttpMediaTypeNotSupportedException.
-