Uses of Class
org.restlet.data.MediaType
Packages that use MediaType
Package
Description
Core classes of the Restlet API.
Information exchanged by components.
Supports Restlet applications.
Supports the converter service.
Supports HTTP header parsing and formatting.
Supports local connectors and resources.
Supports resources.
General utilities.
Common representation data elements.
Client and server resource classes.
Services used by applications and components.
Various utility classes.
-
Uses of MediaType in org.restlet
Methods in org.restlet with parameters of type MediaType -
Uses of MediaType in org.restlet.data
Fields in org.restlet.data declared as MediaTypeModifier and TypeFieldDescriptionstatic final MediaTypeMediaType.ALLstatic final MediaTypeMediaType.APPLICATION_ALLstatic final MediaTypeMediaType.APPLICATION_ALL_JSONstatic final MediaTypeMediaType.APPLICATION_ALL_XMLstatic final MediaTypeMediaType.APPLICATION_ATOMstatic final MediaTypeMediaType.APPLICATION_ATOMPUB_CATEGORYstatic final MediaTypeMediaType.APPLICATION_ATOMPUB_SERVICEstatic final MediaTypeMediaType.APPLICATION_CABstatic final MediaTypeMediaType.APPLICATION_COMPRESSstatic final MediaTypeMediaType.APPLICATION_ECOREstatic final MediaTypeMediaType.APPLICATION_EXCELstatic final MediaTypeMediaType.APPLICATION_FLASHstatic final MediaTypeMediaType.APPLICATION_GNU_TARstatic final MediaTypeMediaType.APPLICATION_GNU_ZIPstatic final MediaTypeMediaType.APPLICATION_HTTP_COOKIESstatic final MediaTypeMediaType.APPLICATION_JAVAstatic final MediaTypeMediaType.APPLICATION_JAVA_ARCHIVEstatic final MediaTypeMediaType.APPLICATION_JAVA_OBJECTstatic final MediaTypeMediaType.APPLICATION_JAVA_OBJECT_GWTstatic final MediaTypeMediaType.APPLICATION_JAVA_OBJECT_XMLstatic final MediaTypeMediaType.APPLICATION_JAVASCRIPTstatic final MediaTypeMediaType.APPLICATION_JNLPstatic final MediaTypeMediaType.APPLICATION_JSONstatic final MediaTypeMediaType.APPLICATION_JSON_ACTIVITYstatic final MediaTypeMediaType.APPLICATION_JSON_PATCHstatic final MediaTypeMediaType.APPLICATION_JSON_SMILEstatic final MediaTypeMediaType.APPLICATION_KMLstatic final MediaTypeMediaType.APPLICATION_KMZstatic final MediaTypeMediaType.APPLICATION_LATEXstatic final MediaTypeMediaType.APPLICATION_MAC_BINHEX40static final MediaTypeMediaType.APPLICATION_MATHMLstatic final MediaTypeMediaType.APPLICATION_MSMLstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_DOCMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_DOCXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_DOTMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_DOTXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_ONETOCstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_ONETOC2static final MediaTypeMediaType.APPLICATION_MSOFFICE_POTMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_POTXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_PPAMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_PPSMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_PPSXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_PPTMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_PPTXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_SLDMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_SLDXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLAMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLSBstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLSMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLSXstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLTMstatic final MediaTypeMediaType.APPLICATION_MSOFFICE_XLTXstatic final MediaTypeMediaType.APPLICATION_OCTET_STREAMstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODBstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODCstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODFstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODGstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODIstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODMstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODPstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODSstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_ODTstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OTGstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OTHstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OTPstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OTSstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OTTstatic final MediaTypeMediaType.APPLICATION_OPENOFFICE_OXTstatic final MediaTypeMediaType.APPLICATION_PDFstatic final MediaTypeMediaType.APPLICATION_POSTSCRIPTstatic final MediaTypeMediaType.APPLICATION_POWERPOINTstatic final MediaTypeMediaType.APPLICATION_PROJECTstatic final MediaTypeMediaType.APPLICATION_RDF_TRIGstatic final MediaTypeMediaType.APPLICATION_RDF_TRIXstatic final MediaTypeMediaType.APPLICATION_RDF_XMLstatic final MediaTypeMediaType.APPLICATION_RELAXNG_COMPACTstatic final MediaTypeMediaType.APPLICATION_RELAXNG_XMLstatic final MediaTypeMediaType.APPLICATION_RSSstatic final MediaTypeMediaType.APPLICATION_RTFstatic final MediaTypeMediaType.APPLICATION_SDPstatic final MediaTypeMediaType.APPLICATION_SPARQL_RESULTS_JSONstatic final MediaTypeMediaType.APPLICATION_SPARQL_RESULTS_XMLstatic final MediaTypeMediaType.APPLICATION_SPSS_SAVstatic final MediaTypeMediaType.APPLICATION_SPSS_SPSstatic final MediaTypeMediaType.APPLICATION_STATA_STAstatic final MediaTypeMediaType.APPLICATION_STUFFITstatic final MediaTypeMediaType.APPLICATION_TARstatic final MediaTypeMediaType.APPLICATION_TEXstatic final MediaTypeMediaType.APPLICATION_TROFF_MANstatic final MediaTypeMediaType.APPLICATION_VOICEXMLstatic final MediaTypeMediaType.APPLICATION_W3C_SCHEMAstatic final MediaTypeMediaType.APPLICATION_W3C_XSLTstatic final MediaTypeMediaType.APPLICATION_WADLstatic final MediaTypeMediaType.APPLICATION_WORDstatic final MediaTypeMediaType.APPLICATION_WWW_FORMstatic final MediaTypeMediaType.APPLICATION_XHTMLstatic final MediaTypeMediaType.APPLICATION_XMIstatic final MediaTypeMediaType.APPLICATION_XMLstatic final MediaTypeMediaType.APPLICATION_XML_DTDstatic final MediaTypeMediaType.APPLICATION_XQUERYstatic final MediaTypeMediaType.APPLICATION_XULstatic final MediaTypeMediaType.APPLICATION_YAMLstatic final MediaTypeMediaType.APPLICATION_ZIPstatic final MediaTypeMediaType.AUDIO_ALLstatic final MediaTypeMediaType.AUDIO_BASICstatic final MediaTypeMediaType.AUDIO_MIDIstatic final MediaTypeMediaType.AUDIO_MPEGstatic final MediaTypeMediaType.AUDIO_REALstatic final MediaTypeMediaType.AUDIO_WAVstatic final MediaTypeMediaType.IMAGE_ALLstatic final MediaTypeMediaType.IMAGE_BMPstatic final MediaTypeMediaType.IMAGE_GIFstatic final MediaTypeMediaType.IMAGE_ICONstatic final MediaTypeMediaType.IMAGE_JPEGstatic final MediaTypeMediaType.IMAGE_PNGstatic final MediaTypeMediaType.IMAGE_SVGstatic final MediaTypeMediaType.IMAGE_TIFFstatic final MediaTypeMediaType.MESSAGE_ALLstatic final MediaTypeMediaType.MESSAGE_HTTPstatic final MediaTypeMediaType.MODEL_ALLstatic final MediaTypeMediaType.MODEL_VRMLstatic final MediaTypeMediaType.MULTIPART_ALLstatic final MediaTypeMediaType.MULTIPART_FORM_DATAstatic final MediaTypeMediaType.TEXT_ALLstatic final MediaTypeMediaType.TEXT_CALENDARstatic final MediaTypeMediaType.TEXT_CSSstatic final MediaTypeMediaType.TEXT_CSVstatic final MediaTypeMediaType.TEXT_DATstatic final MediaTypeMediaType.TEXT_HTMLstatic final MediaTypeMediaType.TEXT_J2ME_APP_DESCRIPTORstatic final MediaTypeMediaType.TEXT_JAVASCRIPTstatic final MediaTypeMediaType.TEXT_PLAINstatic final MediaTypeMediaType.TEXT_RDF_N3static final MediaTypeMediaType.TEXT_RDF_NTRIPLESstatic final MediaTypeMediaType.TEXT_TSVstatic final MediaTypeMediaType.TEXT_TURTLEstatic final MediaTypeMediaType.TEXT_URI_LISTstatic final MediaTypeMediaType.TEXT_VCARDstatic final MediaTypeMediaType.TEXT_XMLstatic final MediaTypeMediaType.TEXT_YAMLstatic final MediaTypeMediaType.VIDEO_ALLstatic final MediaTypeMediaType.VIDEO_AVIstatic final MediaTypeMediaType.VIDEO_MP4static final MediaTypeMediaType.VIDEO_MPEGstatic final MediaTypeMediaType.VIDEO_QUICKTIMEstatic final MediaTypeMediaType.VIDEO_WMVMethods in org.restlet.data that return MediaTypeModifier and TypeMethodDescriptionstatic MediaTypeMediaType.getMostSpecific(MediaType... mediaTypes) Returns the first of the most specific media type of the given array ofMediaTypes.MediaType.getParent()Returns the parent metadata if available or null.ClientInfo.getPreferredMediaType(List<MediaType> supported) Returns the preferred media type among a list of supported ones, based on the client preferences.ClientInfo.getPreferredPatch(List<MediaType> supported) Returns the preferred patch among a list of supported ones, based on the client preferences.static MediaTypeRegister a media type as a known type that can later be retrieved usingvalueOf(String).static MediaTypeReturns the media type associated to a name.Methods in org.restlet.data that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionClientInfo.getAcceptedMediaTypes()Returns the modifiable list of media type preferences.ClientInfo.getAcceptedPatches()Returns the modifiable list of patch preferences.Methods in org.restlet.data with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic 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 MediaTypeModifier and TypeMethodDescriptionClientInfo.getPreferredMediaType(List<MediaType> supported) Returns the preferred media type among a list of supported ones, based on the client preferences.ClientInfo.getPreferredPatch(List<MediaType> supported) Returns the preferred patch among a list of supported ones, based on the client preferences.voidClientInfo.setAcceptedMediaTypes(List<Preference<MediaType>> acceptedMediaTypes) Sets the media type preferences.voidClientInfo.setAcceptedPatches(List<Preference<MediaType>> acceptedPatches) Sets the patch preferences.Constructors in org.restlet.data with parameters of type MediaTypeModifierConstructorDescriptionClientInfo(MediaType mediaType) Constructor from a media type.Constructor that clones an original media type.Constructor that clones an original media type.Constructor that clones an original media type by extracting its parent media type then adding a new set of parameters. -
Uses of MediaType in org.restlet.engine.application
Methods in org.restlet.engine.application that return MediaTypeMethods in org.restlet.engine.application that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionprotected List<Preference<MediaType>>FlexibleConneg.getMediaTypePrefs()Returns the enriched list of media type preferences.protected List<Preference<MediaType>>StrictConneg.getMediaTypePrefs()Returns the enriched list of media type preferences.Methods in org.restlet.engine.application with parameters of type MediaTypeModifier and TypeMethodDescriptionfloatStrictConneg.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 MediaTypeModifier and TypeMethodDescriptionvoidConverterHelper.updatePreferences(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 MediaTypeModifier and TypeMethodDescription<T> voidConverterHelper.updatePreferences(List<Preference<MediaType>> preferences, Class<T> entity) Updates the preferences of the givenClientInfoobject with conversion capabilities for the given entity class.voidConverterHelper.updatePreferences(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(List<Preference<MediaType>> preferences, Class<T> entity) -
Uses of MediaType in org.restlet.engine.header
Methods in org.restlet.engine.header that return MediaTypeModifier and TypeMethodDescriptionContentType.getMediaType()Returns the media type.static MediaTypeContentType.readMediaType(String contentType) Parses the given content type header and returns the media type.Methods in org.restlet.engine.header with parameters of type MediaTypeModifier and TypeMethodDescriptionstatic StringContentType.writeHeader(MediaType mediaType, CharacterSet characterSet) Writes the HTTP "Content-Type" header.Constructors in org.restlet.engine.header with parameters of type MediaTypeModifierConstructorDescriptionContentType(MediaType mediaType, CharacterSet characterSet) Constructor. -
Uses of MediaType in org.restlet.engine.local
Methods in org.restlet.engine.local with parameters of type MediaTypeModifier and TypeMethodDescriptionprotected ResponseDirectoryServerResource.getRepresentation(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.FileEntity.getRepresentation(MediaType defaultMediaType, int timeToLive) ZipEntryEntity.getRepresentation(MediaType defaultMediaType, int timeToLive) Constructors in org.restlet.engine.local with parameters of type MediaTypeModifierConstructorDescriptionZipEntryRepresentation(MediaType mediaType, ZipFile zipFile, ZipEntry entry, int timeToLive) Constructor. -
Uses of MediaType in org.restlet.engine.resource
Constructors in org.restlet.engine.resource with parameters of type MediaTypeModifierConstructorDescriptionVariantInfo(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 MediaTypeModifier and TypeMethodDescriptionstatic booleanFormUtils.isParameterFound(Parameter searchedParam, MediaType mediaRange) Indicates if the searched parameter is specified in the given media range. -
Uses of MediaType in org.restlet.representation
Methods in org.restlet.representation that return MediaTypeModifier and TypeMethodDescriptionVariant.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 MediaTypeModifier and TypeMethodDescriptionvoidVariant.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 MediaTypeModifierConstructorDescriptionAppendableRepresentation(CharSequence text, MediaType mediaType) Constructor.AppendableRepresentation(CharSequence text, MediaType mediaType, Language language) Constructor.AppendableRepresentation(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) CharacterRepresentation(MediaType mediaType) Constructor.FileRepresentation(File file, MediaType mediaType) Constructor that does not set an expiration date forfileFileRepresentation(File file, MediaType mediaType, int timeToLive) Constructor.FileRepresentation(String path, MediaType mediaType) Constructor that does not set an expiration date forpathFileRepresentation(String path, MediaType mediaType, int timeToLive) Constructor.InputRepresentation(InputStream inputStream, MediaType mediaType) Constructor.InputRepresentation(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.ReaderRepresentation(Reader reader, MediaType mediaType) Constructor.ReaderRepresentation(Reader reader, MediaType mediaType, long expectedSize) Constructor.Representation(MediaType mediaType) Constructor.Representation(MediaType mediaType, Date modificationDate) Constructor.Representation(MediaType mediaType, Date modificationDate, Tag tag) Constructor.Representation(MediaType mediaType, Tag tag) Constructor.RepresentationInfo(MediaType mediaType) Constructor.RepresentationInfo(MediaType mediaType, Date modificationDate) Constructor.RepresentationInfo(MediaType mediaType, Date modificationDate, Tag tag) Constructor.RepresentationInfo(MediaType mediaType, Tag tag) Constructor.StreamRepresentation(MediaType mediaType) Constructor.StringRepresentation(CharSequence text, MediaType mediaType) Constructor.StringRepresentation(CharSequence text, MediaType mediaType, Language language) Constructor.StringRepresentation(CharSequence text, MediaType mediaType, Language language, CharacterSet characterSet) Constructor.Constructor.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 MediaTypeModifier and TypeMethodDescriptionDeletes the target resource and all its representations.Represents the resource using a given media type.protected RepresentationHandles 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.Represents the resource using a given media type.Describes the resource using a given media type.Patches a resource with the given object as delta state.Posts an object entity.Puts an object entity.Resource.toRepresentation(Object source, MediaType target) Converts an object into a representation based on a given media type. -
Uses of MediaType in org.restlet.service
Methods in org.restlet.service that return MediaTypeModifier and TypeMethodDescriptionMetadataService.getDefaultMediaType()Returns the default media type for representations.MetadataService.getMediaType(String extension) Returns the mediatype associated to this extension.Methods in org.restlet.service that return types with arguments of type MediaTypeModifier and TypeMethodDescriptionEncoderService.getAcceptedMediaTypes()Returns the media types that should be encoded.MetadataService.getAllMediaTypes(String extension) Returns all the media types associated to this extension.EncoderService.getDefaultAcceptedMediaTypes()Returns the list of default encoded media types.EncoderService.getDefaultIgnoredMediaTypes()Returns the list of default ignored media types.EncoderService.getIgnoredMediaTypes()Returns the media types that should be ignored.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 MediaTypeModifier and TypeMethodDescriptionConverterService.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.ConverterService.toRepresentation(Object source, MediaType target) Converts a regular Java object into a Representation.Method parameters in org.restlet.service with type arguments of type MediaTypeModifier and TypeMethodDescriptionvoidConverterService.updatePreferences(List<Preference<MediaType>> preferences, 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 MediaTypeMethods in org.restlet.util with parameters of type MediaType