Uses of Class
org.restlet.data.MediaType
-
Packages that use MediaType Package Description org.restlet Core classes of the API.org.restlet.data Information exchanged by components.org.restlet.engine.application Supports Restlet applications.org.restlet.engine.converter Supports the converter service.org.restlet.engine.header Supports HTTP header parsing and formatting.org.restlet.engine.local Supports local connectors and resources.org.restlet.engine.resource Supports resources.org.restlet.engine.util General utilities.org.restlet.ext.atom Support for the Atom syndication and the AtomPub (Atom Publication Protocol) standards in their 1.0 version.org.restlet.ext.atom.internal org.restlet.ext.emf Integration with EMF @minor-version@.org.restlet.ext.gson Integration with Gson @minor-version@.org.restlet.ext.html Support for the HTML (HyperText Markup Language) standard in its 4.0 version and above.org.restlet.ext.html.internal org.restlet.ext.jackson Integration with Jackson @minor-version@.org.restlet.ext.jaxb Integration with Java XML Binding (JAXB) @minor-version@.org.restlet.ext.jaxrs Support for JAX-RS API.org.restlet.ext.jaxrs.internal.core org.restlet.ext.jaxrs.internal.exceptions org.restlet.ext.jaxrs.internal.util org.restlet.ext.jaxrs.internal.wrappers org.restlet.ext.jaxrs.internal.wrappers.provider org.restlet.ext.json Support for JSON representations.org.restlet.ext.rdf Support for the RDF parsing and generation.org.restlet.ext.velocity Integration with Apache Velocity @minor-version@.org.restlet.ext.wadl Support the WADL specification.org.restlet.ext.xml Support for XML and XSLT representations.org.restlet.representation Common representation data elements.org.restlet.resource Client and server resource classes.org.restlet.service Services used by applications and components.org.restlet.util Various utility classes. -
-
Uses of MediaType in org.restlet
Methods in org.restlet with parameters of type MediaType Modifier and Type Method Description voidMessage. setEntity(java.lang.String value, MediaType mediaType)Sets a textual entity. -
Uses of MediaType in org.restlet.data
Fields in org.restlet.data with type parameters of type MediaType Modifier and Type Field Description private static java.util.Map<java.lang.String,MediaType>MediaType. _typesThe known media types registered withregister(String, String), retrievable usingvalueOf(String).
Keep the underscore for the ordering.private java.util.List<Preference<MediaType>>ClientInfo. acceptedMediaTypesThe media preferences.private java.util.List<Preference<MediaType>>ClientInfo. acceptedPatchesThe patch preferences.Methods in org.restlet.data that return MediaType Modifier and Type Method Description static MediaTypeMediaType. getMostSpecific(MediaType... mediaTypes)Returns the first of the most specific media type of the given array ofMediaTypes.MediaTypeMediaType. getParent()Returns the parent metadata if available or null.MediaTypeClientInfo. getPreferredMediaType(java.util.List<MediaType> supported)Returns the preferred media type among a list of supported ones, based on the client preferences.MediaTypeClientInfo. getPreferredPatch(java.util.List<MediaType> supported)Returns the preferred patch among a list of supported ones, based on the client preferences.static MediaTypeMediaType. register(java.lang.String name, java.lang.String description)Register a media type as a known type that can later be retrieved usingvalueOf(String).static MediaTypeMediaType. valueOf(java.lang.String name)Returns the media type associated to a name.Methods in org.restlet.data that return types with arguments of type MediaType Modifier and Type Method Description java.util.List<Preference<MediaType>>ClientInfo. getAcceptedMediaTypes()Returns the modifiable list of media type preferences.java.util.List<Preference<MediaType>>ClientInfo. getAcceptedPatches()Returns the modifiable list of patch preferences.private static java.util.Map<java.lang.String,MediaType>MediaType. getTypes()Returns the known media types map.Methods in org.restlet.data with parameters of type MediaType Modifier and Type Method Description static MediaTypeMediaType. getMostSpecific(MediaType... mediaTypes)Returns the first of the most specific media type of the given array ofMediaTypes.Method parameters in org.restlet.data with type arguments of type MediaType Modifier and Type Method Description MediaTypeClientInfo. getPreferredMediaType(java.util.List<MediaType> supported)Returns the preferred media type among a list of supported ones, based on the client preferences.MediaTypeClientInfo. getPreferredPatch(java.util.List<MediaType> supported)Returns the preferred patch among a list of supported ones, based on the client preferences.voidClientInfo. setAcceptedMediaTypes(java.util.List<Preference<MediaType>> acceptedMediaTypes)Sets the media type preferences.voidClientInfo. setAcceptedPatches(java.util.List<Preference<MediaType>> acceptedPatches)Sets the patch preferences.Constructors in org.restlet.data with parameters of type MediaType Constructor Description ClientInfo(MediaType mediaType)Constructor from a media type. -
Uses of MediaType in org.restlet.engine.application
Fields in org.restlet.engine.application with type parameters of type MediaType Modifier and Type Field Description private java.util.List<Preference<MediaType>>FlexibleConneg. mediaTypePrefsThe enriched list of media type preferences.Methods in org.restlet.engine.application that return MediaType Modifier and Type Method Description MediaTypeMetadataExtension. getMediaType()Returns the media type.Methods in org.restlet.engine.application that return types with arguments of type MediaType Modifier and Type Method Description protected java.util.List<Preference<MediaType>>FlexibleConneg. getMediaTypePrefs()Returns the enriched list of media type preferences.protected java.util.List<Preference<MediaType>>StrictConneg. getMediaTypePrefs()Returns the enriched list of media type preferences.Methods in org.restlet.engine.application with parameters of type MediaType Modifier and Type Method Description floatStrictConneg. scoreMediaType(MediaType mediaType)Scores a media type relatively to enriched client preferences. -
Uses of MediaType in org.restlet.engine.converter
Methods in org.restlet.engine.converter with parameters of type MediaType Modifier and Type Method Description voidConverterHelper. updatePreferences(java.util.List<Preference<MediaType>> preferences, MediaType mediaType, float score)Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.Method parameters in org.restlet.engine.converter with type arguments of type MediaType Modifier and Type Method Description <T> voidConverterHelper. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.voidConverterHelper. updatePreferences(java.util.List<Preference<MediaType>> preferences, MediaType mediaType, float score)Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.<T> voidDefaultConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity) -
Uses of MediaType in org.restlet.engine.header
Fields in org.restlet.engine.header declared as MediaType Modifier and Type Field Description private MediaTypeContentType. mediaTypeThe content media type.Methods in org.restlet.engine.header that return MediaType Modifier and Type Method Description MediaTypeContentType. getMediaType()Returns the media type.static MediaTypeContentType. readMediaType(java.lang.String contentType)Parses the given content type header and returns the media type.Methods in org.restlet.engine.header with parameters of type MediaType Modifier and Type Method Description static java.lang.StringContentType. writeHeader(MediaType mediaType, CharacterSet characterSet)Writes the HTTP "Content-Type" header.Constructors in org.restlet.engine.header with parameters of type MediaType Constructor Description ContentType(MediaType mediaType, CharacterSet characterSet)Constructor. -
Uses of MediaType in org.restlet.engine.local
Methods in org.restlet.engine.local with parameters of type MediaType Modifier and Type Method Description protected ResponseDirectoryServerResource. getRepresentation(java.lang.String resourceUri, MediaType acceptedMediaType)Returns a representation of the resource at the target URI.abstract RepresentationEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)Returns a representation of this local entity.RepresentationFileEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)RepresentationZipEntryEntity. getRepresentation(MediaType defaultMediaType, int timeToLive)Constructors in org.restlet.engine.local with parameters of type MediaType Constructor Description ZipEntryRepresentation(MediaType mediaType, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry entry)Deprecated.ZipEntryRepresentation(MediaType mediaType, java.util.zip.ZipFile zipFile, java.util.zip.ZipEntry entry, int timeToLive)Constructor. -
Uses of MediaType in org.restlet.engine.resource
Constructors in org.restlet.engine.resource with parameters of type MediaType Constructor Description VariantInfo(MediaType mediaType)Constructor.VariantInfo(MediaType mediaType, MethodAnnotationInfo annotationInfo)Constructor. -
Uses of MediaType in org.restlet.engine.util
Methods in org.restlet.engine.util with parameters of type MediaType Modifier and Type Method Description static booleanFormUtils. isParameterFound(Parameter searchedParam, MediaType mediaRange)Indicates if the searched parameter is specified in the given media range. -
Uses of MediaType in org.restlet.ext.atom
Fields in org.restlet.ext.atom declared as MediaType Modifier and Type Field Description private MediaTypeContent. externalTypeExpected media type of the external content.private MediaTypeLink. typeAdvisory media type.private MediaTypeText. typeThe content type.Fields in org.restlet.ext.atom with type parameters of type MediaType Modifier and Type Field Description private java.util.List<MediaType>Collection. acceptThe accepted media types.Methods in org.restlet.ext.atom that return MediaType Modifier and Type Method Description MediaTypeContent. getExternalType()Returns the expected media type of the external content.MediaTypeLink. getType()Returns the advisoty media type.MediaTypeText. getType()Returns the content type.Methods in org.restlet.ext.atom that return types with arguments of type MediaType Modifier and Type Method Description java.util.List<MediaType>Collection. getAccept()Returns the accepted media types.Methods in org.restlet.ext.atom with parameters of type MediaType Modifier and Type Method Description voidContent. setExternalType(MediaType externalType)Sets the expected media type of the external content.voidLink. setType(MediaType type)Sets the advisoty media type.voidText. setType(MediaType type)Sets the content type.Method parameters in org.restlet.ext.atom with type arguments of type MediaType Modifier and Type Method Description voidCollection. setAccept(java.util.List<MediaType> accept)Sets the accepted media types.<T> voidAtomConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.atom with parameters of type MediaType Constructor Description Link(Reference href, Relation rel, MediaType type)Constructor.Text(MediaType type)Constructor.Text(MediaType type, java.lang.String content)Constructor. -
Uses of MediaType in org.restlet.ext.atom.internal
Fields in org.restlet.ext.atom.internal declared as MediaType Modifier and Type Field Description private MediaTypeEntryContentReader. contentTypeThe media type of the Content (for inline cases).private MediaTypeFeedContentReader. contentTypeThe media type of the Content (for inline cases).Methods in org.restlet.ext.atom.internal that return MediaType Modifier and Type Method Description private MediaTypeEntryContentReader. getMediaType(java.lang.String type)Returns a media type from an Atom type attribute.private MediaTypeFeedContentReader. getMediaType(java.lang.String type)Returns a media type from an Atom type attribute. -
Uses of MediaType in org.restlet.ext.emf
Methods in org.restlet.ext.emf with parameters of type MediaType Modifier and Type Method Description protected <T extends org.eclipse.emf.ecore.EObject>
EmfRepresentation<T>EmfConverter. create(MediaType mediaType, T source)Deprecated.Creates the marshalingEmfRepresentation.protected org.eclipse.emf.ecore.resource.ResourceEmfRepresentation. createEmfResource(MediaType mediaType)Deprecated.Creates and configure an EMF resource.protected org.eclipse.emf.ecore.xmi.XMLResourceEmfRepresentation. createEmfXmlResource(MediaType mediaType)Deprecated.Creates and configure an EMF resource.Method parameters in org.restlet.ext.emf with type arguments of type MediaType Modifier and Type Method Description <T> voidEmfConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Deprecated.Constructors in org.restlet.ext.emf with parameters of type MediaType Constructor Description EmfRepresentation(MediaType mediaType, T object)Deprecated.Constructor. -
Uses of MediaType in org.restlet.ext.gson
Method parameters in org.restlet.ext.gson with type arguments of type MediaType Modifier and Type Method Description <T> voidGsonConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity) -
Uses of MediaType in org.restlet.ext.html
Methods in org.restlet.ext.html that return MediaType Modifier and Type Method Description private static MediaTypeFormDataSet. createMultipartMediaType(java.lang.String boundary)Creates the media type of a multipart form which must include the used boundary.MediaTypeFormData. getMediaType()Returns the media type of the value representation.Method parameters in org.restlet.ext.html with type arguments of type MediaType Modifier and Type Method Description <T> voidHtmlConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.html with parameters of type MediaType Constructor Description FormDataSet(MediaType mediaType, boolean multipart, java.lang.String multipartBoundary)Constructor. -
Uses of MediaType in org.restlet.ext.html.internal
Methods in org.restlet.ext.html.internal with parameters of type MediaType Modifier and Type Method Description static booleanFormUtils. isEntryFound(FormData searchedEntry, MediaType mediaRange)Indicates if the searched entry is specified in the given media range. -
Uses of MediaType in org.restlet.ext.jackson
Methods in org.restlet.ext.jackson with parameters of type MediaType Modifier and Type Method Description protected <T> JacksonRepresentation<T>JacksonConverter. create(MediaType mediaType, T source)Creates the marshalingJacksonRepresentation.Method parameters in org.restlet.ext.jackson with type arguments of type MediaType Modifier and Type Method Description <T> voidJacksonConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.jackson with parameters of type MediaType Constructor Description JacksonRepresentation(MediaType mediaType, T object)Constructor. -
Uses of MediaType in org.restlet.ext.jaxb
Methods in org.restlet.ext.jaxb with parameters of type MediaType Modifier and Type Method Description protected booleanJaxbConverter. isCompatible(MediaType mediaType)Indicates if the given mediaType is compatible with the media types supported by this converter.Method parameters in org.restlet.ext.jaxb with type arguments of type MediaType Modifier and Type Method Description <T> voidJaxbConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.jaxb with parameters of type MediaType Constructor Description JaxbRepresentation(MediaType mediaType, T object)Creates a JAXB representation from an existing JAXB content tree.JaxbRepresentation(MediaType mediaType, T object, java.lang.ClassLoader classloader)Creates a JAXB representation from an existing JAXB content tree. -
Uses of MediaType in org.restlet.ext.jaxrs
Methods in org.restlet.ext.jaxrs that return MediaType Modifier and Type Method Description private MediaTypeJaxRsRestlet. determineMediaType(MediaType jaxRsResponseMediaType, ResourceMethod resourceMethod, java.lang.Class<?> entityClass, java.lang.reflect.Type genericReturnType)Deprecated.Determines the MediaType for a response, see JAX-RS-Spec (2008-08-27), section 3.8 "Determining the MediaType of Responses"Methods in org.restlet.ext.jaxrs with parameters of type MediaType Modifier and Type Method Description private RepresentationJaxRsRestlet. convertToRepresentation(java.lang.Object entity, ResourceMethod resourceMethod, MediaType jaxRsResponseMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> jaxRsRespHeaders, SortedMetadata<MediaType> accMediaTypes)Deprecated.Converts the given entity - returned by the resource method - to a RestletRepresentation.private MediaTypeJaxRsRestlet. determineMediaType(MediaType jaxRsResponseMediaType, ResourceMethod resourceMethod, java.lang.Class<?> entityClass, java.lang.reflect.Type genericReturnType)Deprecated.Determines the MediaType for a response, see JAX-RS-Spec (2008-08-27), section 3.8 "Determining the MediaType of Responses"private JaxRsRestlet.ResObjAndMethJaxRsRestlet. identifyMethod(JaxRsRestlet.ResObjAndRemPath resObjAndRemPath, MediaType givenMediaType)Deprecated.Identifies the method that will handle the request, see JAX-RS-Spec (2008-04-16), section 3.7.2 "Request Matching", Part 3: Identify the method that will handle the request:"Method parameters in org.restlet.ext.jaxrs with type arguments of type MediaType Modifier and Type Method Description private RepresentationJaxRsRestlet. convertToRepresentation(java.lang.Object entity, ResourceMethod resourceMethod, MediaType jaxRsResponseMediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> jaxRsRespHeaders, SortedMetadata<MediaType> accMediaTypes)Deprecated.Converts the given entity - returned by the resource method - to a RestletRepresentation. -
Uses of MediaType in org.restlet.ext.jaxrs.internal.core
Fields in org.restlet.ext.jaxrs.internal.core with type parameters of type MediaType Modifier and Type Field Description private SortedMetadata<MediaType>CallContext. accMediaTypesDeprecated.Methods in org.restlet.ext.jaxrs.internal.core that return types with arguments of type MediaType Modifier and Type Method Description SortedMetadata<MediaType>CallContext. getAccMediaTypes()Deprecated.Returns the accepted media types as RestletMediaTypes. -
Uses of MediaType in org.restlet.ext.jaxrs.internal.exceptions
Fields in org.restlet.ext.jaxrs.internal.exceptions declared as MediaType Modifier and Type Field Description private MediaTypeNoMessageBodyReaderException. mediaTypeDeprecated.Methods in org.restlet.ext.jaxrs.internal.exceptions that return MediaType Modifier and Type Method Description MediaTypeNoMessageBodyReaderException. getMediaType()Deprecated.Returns the media type for which (in combination with the java parameter type, seeNoMessageBodyReaderException.getParamType()) noMessageBodyReaderwas found.Constructors in org.restlet.ext.jaxrs.internal.exceptions with parameters of type MediaType Constructor Description NoMessageBodyReaderException(MediaType mediaType, java.lang.Class<?> paramType)Deprecated. -
Uses of MediaType in org.restlet.ext.jaxrs.internal.util
Fields in org.restlet.ext.jaxrs.internal.util with type parameters of type MediaType Modifier and Type Field Description static java.util.Comparator<MediaType>Util. MEDIA_TYPE_COMPDeprecated.This comparator sorts the concrete MediaTypes to the beginning and the unconcrete to the end.Methods in org.restlet.ext.jaxrs.internal.util that return MediaType Modifier and Type Method Description static MediaTypeUtil. getMediaType(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders)Deprecated.Returns the RestletMediaTypeof the given http headers (e.g.static MediaTypeConverter. getMediaTypeWithoutParams(MediaType mediaType)Deprecated.Creates a MediaType without any parameters.static MediaTypeConverter. toRestletMediaType(javax.ws.rs.core.MediaType jaxRsMediaType)Deprecated.Convert a JAX-RS MediaType to a Restlet MediaType.Methods in org.restlet.ext.jaxrs.internal.util that return types with arguments of type MediaType Modifier and Type Method Description private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodsSupportAllTypes(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut)Deprecated.private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodsSupportType(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodsSupportTypeAndSubType(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodSupportsMime(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.static SortedMetadata<MediaType>SortedMetadata. get(MediaType respMediaType)Deprecated.private static java.util.List<MediaType>AlgorithmUtil. getConsOrProdMimes(ResourceMethod resourceMethod, AlgorithmUtil.ConsOrProdMime inOut)Deprecated.static SortedMetadata<MediaType>SortedMetadata. getEmptyMediaTypes()Deprecated.Returns an empty SortedMetadatastatic SortedMetadata<MediaType>SortedMetadata. getForMediaTypes(java.util.Collection<Preference<MediaType>> preferences)Deprecated.Creates a newSortedMetadataforMediaTypes.static SortedMetadata<MediaType>SortedMetadata. getMediaTypeAll()Deprecated.Creates a SortedMetadata collection with exactly theMediaType'*/*''static SortedMetadata<MediaType>SortedMetadata. singleton(MediaType mediaType)Deprecated.static java.util.List<MediaType>Util. sortByConcreteness(java.util.Collection<MediaType> mediaTypes)Deprecated.Methods in org.restlet.ext.jaxrs.internal.util with parameters of type MediaType Modifier and Type Method Description static SortedMetadata<MediaType>SortedMetadata. get(MediaType respMediaType)Deprecated.static ResourceMethodAlgorithmUtil. getBestMethod(java.util.Collection<ResourceMethod> unsortedResourceMethods, MediaType givenMediaType, SortedMetadata<MediaType> accMediaTypes, Method requHttpMethod)Deprecated.Sort by using the media type of input data as the primary key and the media type of output data as the secondary key.
Sorting of media types follows the general rule: x/y < x/* < */*, i.e.static MediaTypeConverter. getMediaTypeWithoutParams(MediaType mediaType)Deprecated.Creates a MediaType without any parameters.javax.ws.rs.WebApplicationExceptionExceptionHandler. noMessageBodyWriter(java.lang.Class<? extends java.lang.Object> entityClass, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType respMediaType, SortedMetadata<MediaType> accMediaTypes)Deprecated.static SortedMetadata<MediaType>SortedMetadata. singleton(MediaType mediaType)Deprecated.static intUtil. specificness(MediaType mediaType)Deprecated.Returns the specificness of the givenMediaType: 1 for any concrete type (contains no star) 0 for the types (anything/*) -1 for '*/*static javax.ws.rs.core.MediaTypeConverter. toJaxRsMediaType(MediaType restletMediaType)Deprecated.Convert a Restlet MediaType to a JAX-RS MediaType.static javax.ws.rs.core.MediaTypeConverter. toJaxRsMediaType(MediaType restletMediaType, CharacterSet restletCharacterSet)Deprecated.Convert a Restlet MediaType to a JAX-RS MediaType.Method parameters in org.restlet.ext.jaxrs.internal.util with type arguments of type MediaType Modifier and Type Method Description private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodsSupportType(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodsSupportTypeAndSubType(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.private static OrderedMap<ResourceMethod,java.util.List<MediaType>>AlgorithmUtil. findMethodSupportsMime(java.util.Collection<ResourceMethod> resourceMethods, AlgorithmUtil.ConsOrProdMime inOut, SortedMetadata<MediaType> mediaTypes)Deprecated.static ResourceMethodAlgorithmUtil. getBestMethod(java.util.Collection<ResourceMethod> unsortedResourceMethods, MediaType givenMediaType, SortedMetadata<MediaType> accMediaTypes, Method requHttpMethod)Deprecated.Sort by using the media type of input data as the primary key and the media type of output data as the secondary key.
Sorting of media types follows the general rule: x/y < x/* < */*, i.e.static SortedMetadata<MediaType>SortedMetadata. getForMediaTypes(java.util.Collection<Preference<MediaType>> preferences)Deprecated.Creates a newSortedMetadataforMediaTypes.javax.ws.rs.WebApplicationExceptionExceptionHandler. noMessageBodyWriter(java.lang.Class<? extends java.lang.Object> entityClass, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType respMediaType, SortedMetadata<MediaType> accMediaTypes)Deprecated.static java.util.List<MediaType>Util. sortByConcreteness(java.util.Collection<MediaType> mediaTypes)Deprecated.Constructors in org.restlet.ext.jaxrs.internal.util with parameters of type MediaType Constructor Description JaxRsOutputRepresentation(T object, java.lang.reflect.Type genericType, MediaType mediaType, java.lang.annotation.Annotation[] annotations, MessageBodyWriter mbw, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders)Deprecated.Creates a new JaxRsOutputRepresentation. -
Uses of MediaType in org.restlet.ext.jaxrs.internal.wrappers
Fields in org.restlet.ext.jaxrs.internal.wrappers with type parameters of type MediaType Modifier and Type Field Description private java.util.List<MediaType>ResourceMethod. consumedMimesDeprecated.private java.util.List<MediaType>ResourceMethod. producedMimesDeprecated.Methods in org.restlet.ext.jaxrs.internal.wrappers that return types with arguments of type MediaType Modifier and Type Method Description static java.util.List<MediaType>WrapperUtil. convertToMediaTypes(java.lang.String[] mimes)Deprecated.Converts the given mimes to a List of MediaTypes.private java.util.List<MediaType>ResourceMethod. createConsumedMimes()Deprecated.Creates the list of the consumed mimes from theAbstractMethodWrapper#annotatedMethodand theAbstractMethodWrapper.executeMethodto be stored in the final instance variableResourceMethod.consumedMimes.private java.util.List<MediaType>ResourceMethod. createProducedMimes()Deprecated.Creates the list of the produced mimes from theAbstractMethodWrapper#annotatedMethodand theAbstractMethodWrapper.executeMethodto be stored in the final instance variableResourceMethod.producedMimes.java.util.List<MediaType>ResourceMethod. getConsumedMimes()Deprecated.java.util.List<MediaType>ResourceMethod. getProducedMimes()Deprecated.Methods in org.restlet.ext.jaxrs.internal.wrappers with parameters of type MediaType Modifier and Type Method Description booleanResourceMethod. isGivenMediaTypeSupported(MediaType givenMediaType)Deprecated.Method parameters in org.restlet.ext.jaxrs.internal.wrappers with type arguments of type MediaType Modifier and Type Method Description booleanResourceMethod. isAcceptedMediaTypeSupported(SortedMetadata<MediaType> accMediaTypess)Deprecated.Check if this method supports the media type to produce for a request. -
Uses of MediaType in org.restlet.ext.jaxrs.internal.wrappers.provider
Fields in org.restlet.ext.jaxrs.internal.wrappers.provider with type parameters of type MediaType Modifier and Type Field Description private java.util.List<MediaType>AbstractProviderWrapper. consumedMimesDeprecated.the mimes this MessageBodyReader consumes.private java.util.List<MediaType>AbstractProviderWrapper. producedMimesDeprecated.Methods in org.restlet.ext.jaxrs.internal.wrappers.provider that return types with arguments of type MediaType Modifier and Type Method Description java.util.Collection<MediaType>MessageBodyWriterSubSet. getAllProducibleMediaTypes()Deprecated.returns a list of all producible media types.java.util.List<MediaType>AbstractProviderWrapper. getConsumedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.util.List<MediaType>MessageBodyReader. getConsumedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.util.List<MediaType>ProviderWrapper. getConsumedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.util.List<MediaType>AbstractProviderWrapper. getProducedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.util.List<MediaType>MessageBodyWriter. getProducedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.java.util.List<MediaType>ProviderWrapper. getProducedMimes()Deprecated.Returns the list of producedMediaTypes of the wrappedMessageBodyWriter.Methods in org.restlet.ext.jaxrs.internal.wrappers.provider with parameters of type MediaType Modifier and Type Method Description MessageBodyReaderJaxRsProviders. getBestReader(java.lang.Class<?> paramType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)Deprecated.Returns theMessageBodyReader, that best matches the given criteria.MessageBodyReaderMessageBodyReaderSet. getBestReader(java.lang.Class<?> paramType, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)Deprecated.Returns the bestMessageBodyReaderin this Set.MessageBodyWriterMessageBodyWriterSubSet. getBestWriter(MediaType determinedResponseMediaType, java.lang.annotation.Annotation[] annotations, SortedMetadata<MediaType> accMediaTypes)Deprecated.Finds aMessageBodyWriterin this Set that best matches media types of the response method and of the acceptedMediaTypes.longMessageBodyWriter. getSize(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)Deprecated.Called beforewriteToto ascertain the length in bytes of the serialized form oft.longSingletonProvider. getSize(java.lang.Object t, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)Deprecated.java.lang.ObjectMessageBodyReader. readFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated.java.lang.ObjectSingletonProvider. readFrom(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, CharacterSet characterSet, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders, java.io.InputStream entityStream)Deprecated.booleanAbstractProviderWrapper. supportsRead(MediaType mediaType)Deprecated.Checks, if this MessageBodyReader supports the given MediaType.booleanProviderWrapper. supportsRead(MediaType mediaType)Deprecated.Checks, if this MessageBodyReader supports the given MediaType.booleanAbstractProviderWrapper. supportsWrite(MediaType requested)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.booleanMessageBodyWriter. supportsWrite(MediaType mediaType)Deprecated.Checks, if the wrapped MessageBodyWriter supports the givenMediaType.booleanProviderWrapper. supportsWrite(MediaType requested)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.voidMessageBodyWriter. writeTo(java.lang.Object object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)Deprecated.voidSingletonProvider. writeTo(java.lang.Object object, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)Deprecated.Write a type to an HTTP response.Method parameters in org.restlet.ext.jaxrs.internal.wrappers.provider with type arguments of type MediaType Modifier and Type Method Description MessageBodyWriterMessageBodyWriterSubSet. getBestWriter(MediaType determinedResponseMediaType, java.lang.annotation.Annotation[] annotations, SortedMetadata<MediaType> accMediaTypes)Deprecated.Finds aMessageBodyWriterin this Set that best matches media types of the response method and of the acceptedMediaTypes.booleanAbstractProviderWrapper. supportsWrite(java.lang.Iterable<MediaType> mediaTypes)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes.booleanMessageBodyWriter. supportsWrite(java.lang.Iterable<MediaType> mediaTypes)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the givenMediaTypes.booleanProviderWrapper. supportsWrite(java.lang.Iterable<MediaType> mediaTypes)Deprecated.Checks, if the wrapped MessageBodyWriter supports at least one of the requestedMediaTypes. -
Uses of MediaType in org.restlet.ext.json
Method parameters in org.restlet.ext.json with type arguments of type MediaType Modifier and Type Method Description <T> voidJsonConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity) -
Uses of MediaType in org.restlet.ext.rdf
Methods in org.restlet.ext.rdf with parameters of type MediaType Modifier and Type Method Description GraphHandlerRdfRepresentation. createWriter(MediaType mediaType, java.io.Writer writer)Returns an instance of a graph handler used when writing the inner set of links.Method parameters in org.restlet.ext.rdf with type arguments of type MediaType Modifier and Type Method Description <T> voidRdfConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.rdf with parameters of type MediaType Constructor Description RdfRepresentation(MediaType mediaType)Constructor with argument.RdfRepresentation(Graph linkSet, MediaType mediaType)Constructor with argument. -
Uses of MediaType in org.restlet.ext.velocity
Method parameters in org.restlet.ext.velocity with type arguments of type MediaType Modifier and Type Method Description <T> voidVelocityConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.velocity with parameters of type MediaType Constructor Description TemplateRepresentation(java.lang.String templateName, java.util.Map<java.lang.String,java.lang.Object> dataModel, MediaType mediaType)Constructor.TemplateRepresentation(java.lang.String templateName, MediaType mediaType)Constructor.TemplateRepresentation(org.apache.velocity.Template template, java.util.Map<java.lang.String,java.lang.Object> dataModel, MediaType mediaType)Constructor.TemplateRepresentation(org.apache.velocity.Template template, MediaType mediaType)Constructor.TemplateRepresentation(Representation templateRepresentation, java.util.Map<java.lang.String,java.lang.Object> dataModel, MediaType mediaType)Constructor based on a Velocity 'encoded' representation.TemplateRepresentation(Representation templateRepresentation, MediaType mediaType)Constructor based on a Velocity 'encoded' representation. -
Uses of MediaType in org.restlet.ext.wadl
Fields in org.restlet.ext.wadl declared as MediaType Modifier and Type Field Description private MediaTypeRepresentationInfo. mediaTypeDeprecated.Media type of that element.private MediaTypeResourceInfo. queryTypeDeprecated.Media type for the query component of the resource URI.Methods in org.restlet.ext.wadl that return MediaType Modifier and Type Method Description MediaTypeRepresentationInfo. getMediaType()Deprecated.Returns the media type of that element.MediaTypeResourceInfo. getQueryType()Deprecated.Returns the media type for the query component of the resource URI.Methods in org.restlet.ext.wadl with parameters of type MediaType Modifier and Type Method Description voidRepresentationInfo. setMediaType(MediaType mediaType)Deprecated.Sets the media type of that element.voidResourceInfo. setQueryType(MediaType queryType)Deprecated.Sets the media type for the query component of the resource URI.Method parameters in org.restlet.ext.wadl with type arguments of type MediaType Modifier and Type Method Description <T> voidWadlConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Deprecated.Constructors in org.restlet.ext.wadl with parameters of type MediaType Constructor Description RepresentationInfo(MediaType mediaType)Deprecated.Constructor with a media type. -
Uses of MediaType in org.restlet.ext.xml
Fields in org.restlet.ext.xml declared as MediaType Modifier and Type Field Description private MediaTypeTransformer. resultMediaTypeThe media type of the result representation.Methods in org.restlet.ext.xml that return MediaType Modifier and Type Method Description MediaTypeTransformer. getResultMediaType()Returns the media type of the result representation.Methods in org.restlet.ext.xml with parameters of type MediaType Modifier and Type Method Description voidTransformer. setResultMediaType(MediaType resultMediaType)Sets the media type of the result representation.Method parameters in org.restlet.ext.xml with type arguments of type MediaType Modifier and Type Method Description <T> voidXmlConverter. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)Constructors in org.restlet.ext.xml with parameters of type MediaType Constructor Description DomRepresentation(MediaType mediaType)Constructor for an empty document.DomRepresentation(MediaType mediaType, org.w3c.dom.Document xmlDocument)Constructor from an existing DOM document.SaxRepresentation(MediaType mediaType)Constructor.SaxRepresentation(MediaType mediaType, javax.xml.transform.sax.SAXSource xmlSource)Constructor.SaxRepresentation(MediaType mediaType, org.w3c.dom.Document xmlDocument)Constructor.SaxRepresentation(MediaType mediaType, org.xml.sax.InputSource xmlSource)Constructor.XmlRepresentation(MediaType mediaType)Constructor.XmlRepresentation(MediaType mediaType, long expectedSize)Constructor. -
Uses of MediaType in org.restlet.representation
Fields in org.restlet.representation declared as MediaType Modifier and Type Field Description private MediaTypeVariant. mediaTypeThe media type.Methods in org.restlet.representation that return MediaType Modifier and Type Method Description MediaTypeVariant. getMediaType()Returns the media type.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header.Methods in org.restlet.representation with parameters of type MediaType Modifier and Type Method Description voidVariant. setMediaType(MediaType mediaType)Sets the media type.
Note that when used with HTTP connectors, this property maps to the "Content-Type" header.Constructors in org.restlet.representation with parameters of type MediaType Constructor Description AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType)Constructor.AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)Constructor.AppendableRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)Constructor.ByteArrayRepresentation(byte[] byteArray, int offSet, int length, MediaType mediaType)ByteArrayRepresentation(byte[] byteArray, int offSet, int length, MediaType mediaType, long expectedSize)ByteArrayRepresentation(byte[] byteArray, MediaType mediaType)Constructor.ByteArrayRepresentation(byte[] byteArray, MediaType mediaType, long expectedSize)ChannelRepresentation(MediaType mediaType)Constructor.CharacterRepresentation(MediaType mediaType)Constructor.FileRepresentation(java.io.File file, MediaType mediaType)Constructor that does not set an expiration date forfileFileRepresentation(java.io.File file, MediaType mediaType, int timeToLive)Constructor.FileRepresentation(java.lang.String path, MediaType mediaType)Constructor that does not set an expiration date forpathFileRepresentation(java.lang.String path, MediaType mediaType, int timeToLive)Constructor.InputRepresentation(java.io.InputStream inputStream, MediaType mediaType)Constructor.InputRepresentation(java.io.InputStream inputStream, MediaType mediaType, long expectedSize)Constructor.ObjectRepresentation(T object, MediaType mediaType)Constructor for either theAPPLICATION_JAVA_OBJECTtype or theAPPLICATION_XMLtype.OutputRepresentation(MediaType mediaType)Constructor.OutputRepresentation(MediaType mediaType, long expectedSize)Constructor.ReadableRepresentation(java.nio.channels.ReadableByteChannel readableChannel, MediaType mediaType)Constructor.ReadableRepresentation(java.nio.channels.ReadableByteChannel channel, MediaType mediaType, long expectedSize)Constructor.ReaderRepresentation(java.io.Reader reader, MediaType mediaType)Constructor.ReaderRepresentation(java.io.Reader reader, MediaType mediaType, long expectedSize)Constructor.Representation(MediaType mediaType)Constructor.Representation(MediaType mediaType, java.util.Date modificationDate)Constructor.Representation(MediaType mediaType, java.util.Date modificationDate, Tag tag)Constructor.Representation(MediaType mediaType, Tag tag)Constructor.RepresentationInfo(MediaType mediaType)Constructor.RepresentationInfo(MediaType mediaType, java.util.Date modificationDate)Constructor.RepresentationInfo(MediaType mediaType, java.util.Date modificationDate, Tag tag)Constructor.RepresentationInfo(MediaType mediaType, Tag tag)Constructor.StreamRepresentation(MediaType mediaType)Constructor.StringRepresentation(java.lang.CharSequence text, MediaType mediaType)Constructor.StringRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language)Constructor.StringRepresentation(java.lang.CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet)Constructor.Variant(MediaType mediaType)Constructor.Variant(MediaType mediaType, Language language)Constructor.WritableRepresentation(MediaType mediaType)Constructor.WriterRepresentation(MediaType mediaType)Constructor.WriterRepresentation(MediaType mediaType, long expectedSize)Constructor. -
Uses of MediaType in org.restlet.resource
Methods in org.restlet.resource with parameters of type MediaType Modifier and Type Method Description RepresentationClientResource. delete(MediaType mediaType)Deletes the target resource and all its representations.RepresentationClientResource. get(MediaType mediaType)Represents the resource using a given media type.protected RepresentationClientResource. handle(Method method, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.protected RepresentationClientResource. handle(Method method, Representation entity, MediaType mediaType)Handles the call by cloning the prototype request, setting the method and entity.RepresentationClientResource. head(MediaType mediaType)Represents the resource using a given media type.RepresentationClientResource. options(MediaType mediaType)Describes the resource using a given media type.RepresentationClientResource. patch(java.lang.Object entity, MediaType mediaType)Patches a resource with the given object as delta state.RepresentationClientResource. post(java.lang.Object entity, MediaType mediaType)Posts an object entity.RepresentationClientResource. put(java.lang.Object entity, MediaType mediaType)Puts an object entity.RepresentationResource. toRepresentation(java.lang.Object source, MediaType target)Converts an object into a representation based on a given media type. -
Uses of MediaType in org.restlet.service
Fields in org.restlet.service declared as MediaType Modifier and Type Field Description private MediaTypeMetadataService. defaultMediaTypeThe default media type for representations.Fields in org.restlet.service with type parameters of type MediaType Modifier and Type Field Description private java.util.List<MediaType>EncoderService. acceptedMediaTypesThe media types that should be encoded.private java.util.List<MediaType>EncoderService. ignoredMediaTypesThe media types that should be ignored.Methods in org.restlet.service that return MediaType Modifier and Type Method Description MediaTypeMetadataService. getDefaultMediaType()Returns the default media type for representations.MediaTypeMetadataService. getMediaType(java.lang.String extension)Returns the mediatype associated to this extension.Methods in org.restlet.service that return types with arguments of type MediaType Modifier and Type Method Description java.util.List<MediaType>EncoderService. getAcceptedMediaTypes()Returns the media types that should be encoded.java.util.List<MediaType>MetadataService. getAllMediaTypes(java.lang.String extension)Returns all the media types associated to this extension.static java.util.List<MediaType>EncoderService. getDefaultAcceptedMediaTypes()Returns the list of default encoded media types.static java.util.List<MediaType>EncoderService. getDefaultIgnoredMediaTypes()Returns the list of default ignored media types.java.util.List<MediaType>EncoderService. getIgnoredMediaTypes()Returns the media types that should be ignored.java.util.List<MediaType>ConverterService. getPatchTypes(MediaType representationType)Returns the list of patch media types available for the given representation types.Methods in org.restlet.service with parameters of type MediaType Modifier and Type Method Description java.util.List<MediaType>ConverterService. getPatchTypes(MediaType representationType)Returns the list of patch media types available for the given representation types.voidMetadataService. setDefaultMediaType(MediaType defaultMediaType)Sets the default media type for local representations.RepresentationConverterService. toRepresentation(java.lang.Object source, MediaType target)Converts a regular Java object into a Representation.Method parameters in org.restlet.service with type arguments of type MediaType Modifier and Type Method Description voidConverterService. updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<?> entity)Updates the media type preferences with available conversion capabilities for the given entity class. -
Uses of MediaType in org.restlet.util
Methods in org.restlet.util that return MediaType Modifier and Type Method Description MediaTypeWrapperRepresentation. getMediaType()Methods in org.restlet.util with parameters of type MediaType Modifier and Type Method Description voidWrapperRequest. setEntity(java.lang.String value, MediaType mediaType)Sets a textual entity.voidWrapperResponse. setEntity(java.lang.String value, MediaType mediaType)Sets a textual entity.voidWrapperRepresentation. setMediaType(MediaType mediaType)
-