|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use MediaType | |
|---|---|
| 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.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.data |
|---|
| Methods in org.restlet.data that return MediaType | |
|---|---|
static MediaType |
MediaType.getMostSpecific(MediaType... mediaTypes)
Returns the first of the most specific media type of the given array of MediaTypes. |
MediaType |
MediaType.getParent()
Returns the parent metadata if available or null. |
MediaType |
ClientInfo.getPreferredMediaType(List<MediaType> supported)
Returns the preferred media type among a list of supported ones, based on the client preferences. |
MediaType |
ClientInfo.getPreferredPatch(List<MediaType> supported)
Returns the preferred patch among a list of supported ones, based on the client preferences. |
static MediaType |
MediaType.register(String name,
String description)
Register a media type as a known type that can later be retrieved using valueOf(String). |
static MediaType |
MediaType.valueOf(String name)
Returns the media type associated to a name. |
| Methods in org.restlet.data that return types with arguments of type MediaType | |
|---|---|
List<Preference<MediaType>> |
ClientInfo.getAcceptedMediaTypes()
Returns the modifiable list of media type preferences. |
List<Preference<MediaType>> |
ClientInfo.getAcceptedPatches()
Returns the modifiable list of patch preferences. |
| Methods in org.restlet.data with parameters of type MediaType | |
|---|---|
static MediaType |
MediaType.getMostSpecific(MediaType... mediaTypes)
Returns the first of the most specific media type of the given array of MediaTypes. |
| Method parameters in org.restlet.data with type arguments of type MediaType | |
|---|---|
MediaType |
ClientInfo.getPreferredMediaType(List<MediaType> supported)
Returns the preferred media type among a list of supported ones, based on the client preferences. |
MediaType |
ClientInfo.getPreferredPatch(List<MediaType> supported)
Returns the preferred patch among a list of supported ones, based on the client preferences. |
void |
ClientInfo.setAcceptedMediaTypes(List<Preference<MediaType>> acceptedMediaTypes)
Sets the media type preferences. |
void |
ClientInfo.setAcceptedPatches(List<Preference<MediaType>> acceptedPatches)
Sets the patch preferences. |
| Constructors in org.restlet.data with parameters of type MediaType | |
|---|---|
ClientInfo(MediaType mediaType)
Constructor from a media type. |
|
| Uses of MediaType in org.restlet.engine.application |
|---|
| Methods in org.restlet.engine.application that return MediaType | |
|---|---|
MediaType |
MetadataExtension.getMediaType()
Returns the media type. |
| Methods in org.restlet.engine.application that return types with arguments of type MediaType | |
|---|---|
protected 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 MediaType | |
|---|---|
float |
StrictConneg.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 | |
|---|---|
void |
ConverterHelper.updatePreferences(List<Preference<MediaType>> preferences,
MediaType mediaType,
float score)
Updates the preferences of the given ClientInfo object with
conversion capabilities for the given entity class. |
| Method parameters in org.restlet.engine.converter with type arguments of type MediaType | ||
|---|---|---|
|
ConverterHelper.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
Updates the preferences of the given ClientInfo object with
conversion capabilities for the given entity class. |
|
|
DefaultConverter.updatePreferences(List<Preference<MediaType>> preferences,
Class<T> entity)
|
|
void |
ConverterHelper.updatePreferences(List<Preference<MediaType>> preferences,
MediaType mediaType,
float score)
Updates the preferences of the given ClientInfo object with
conversion capabilities for the given entity class. |
|
| Uses of MediaType in org.restlet.engine.header |
|---|
| Methods in org.restlet.engine.header that return MediaType | |
|---|---|
MediaType |
ContentType.getMediaType()
Returns the media type. |
static MediaType |
ContentType.readMediaType(String contentType)
Parses the given content type header and returns the media type. |
| Methods in org.restlet.engine.header with parameters of type MediaType | |
|---|---|
static String |
ContentType.writeHeader(MediaType mediaType,
CharacterSet characterSet)
Writes the HTTP "Content-Type" header. |
| Constructors in org.restlet.engine.header with parameters of type MediaType | |
|---|---|
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 | |
|---|---|
Representation |
FileEntity.getRepresentation(MediaType defaultMediaType,
int timeToLive)
|
Representation |
ZipEntryEntity.getRepresentation(MediaType defaultMediaType,
int timeToLive)
|
abstract Representation |
Entity.getRepresentation(MediaType defaultMediaType,
int timeToLive)
Returns a representation of this local entity. |
protected Response |
DirectoryServerResource.getRepresentation(String resourceUri,
MediaType acceptedMediaType)
Returns a representation of the resource at the target URI. |
| Constructors in org.restlet.engine.local with parameters of type MediaType | |
|---|---|
ZipEntryRepresentation(MediaType mediaType,
ZipFile zipFile,
ZipEntry entry)
Constructor. |
|
| Uses of MediaType in org.restlet.engine.resource |
|---|
| Constructors in org.restlet.engine.resource with parameters of type MediaType | |
|---|---|
VariantInfo(MediaType mediaType)
Constructor. |
|
VariantInfo(MediaType mediaType,
AnnotationInfo annotationInfo)
Constructor. |
|
| Uses of MediaType in org.restlet.engine.util |
|---|
| Methods in org.restlet.engine.util with parameters of type MediaType | |
|---|---|
static boolean |
FormUtils.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 MediaType | |
|---|---|
MediaType |
Variant.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 | |
|---|---|
void |
Variant.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 | |
|---|---|
AppendableRepresentation(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)
|
|
ChannelRepresentation(MediaType mediaType)
Constructor. |
|
CharacterRepresentation(MediaType mediaType)
Constructor. |
|
FileRepresentation(File file,
MediaType mediaType)
Constructor that does not set an expiration date for file |
|
FileRepresentation(File file,
MediaType mediaType,
int timeToLive)
Constructor. |
|
FileRepresentation(String path,
MediaType mediaType)
Constructor that does not set an expiration date for path |
|
FileRepresentation(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 the APPLICATION_JAVA_OBJECT type
or the APPLICATION_XML type. |
|
OutputRepresentation(MediaType mediaType)
Constructor. |
|
OutputRepresentation(MediaType mediaType,
long expectedSize)
Constructor. |
|
ReadableRepresentation(ReadableByteChannel readableChannel,
MediaType mediaType)
Constructor. |
|
ReadableRepresentation(ReadableByteChannel channel,
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. |
|
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 | |
|---|---|
Representation |
ClientResource.delete(MediaType mediaType)
Deletes the target resource and all its representations. |
Representation |
ClientResource.get(MediaType mediaType)
Represents the resource using a given media type. |
protected Representation |
ClientResource.handle(Method method,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and entity. |
protected Representation |
ClientResource.handle(Method method,
Representation entity,
MediaType mediaType)
Handles the call by cloning the prototype request, setting the method and entity. |
Representation |
ClientResource.head(MediaType mediaType)
Represents the resource using a given media type. |
Representation |
ClientResource.options(MediaType mediaType)
Describes the resource using a given media type. |
Representation |
ClientResource.patch(Object entity,
MediaType mediaType)
Patches a resource with the given object as delta state. |
Representation |
ClientResource.post(Object entity,
MediaType mediaType)
Posts an object entity. |
Representation |
ClientResource.put(Object entity,
MediaType mediaType)
Puts an object entity. |
| Uses of MediaType in org.restlet.service |
|---|
| Methods in org.restlet.service that return MediaType | |
|---|---|
MediaType |
MetadataService.getDefaultMediaType()
Returns the default media type for representations. |
MediaType |
MetadataService.getMediaType(String extension)
Returns the mediatype associated to this extension. |
| Methods in org.restlet.service that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
EncoderService.getAcceptedMediaTypes()
Returns the media types that should be encoded. |
List<MediaType> |
MetadataService.getAllMediaTypes(String extension)
Returns all the media types associated to this extension. |
static List<MediaType> |
EncoderService.getDefaultAcceptedMediaTypes()
Returns the list of default encoded media types. |
static List<MediaType> |
EncoderService.getDefaultIgnoredMediaTypes()
Returns the list of default ignored media types. |
List<MediaType> |
EncoderService.getIgnoredMediaTypes()
Returns the media types that should be ignored. |
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 | |
|---|---|
List<MediaType> |
ConverterService.getPatchTypes(MediaType representationType)
Returns the list of patch media types available for the given representation types. |
void |
MetadataService.setDefaultMediaType(MediaType defaultMediaType)
Sets the default media type for local representations. |
| Method parameters in org.restlet.service with type arguments of type MediaType | |
|---|---|
void |
ConverterService.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 MediaType | |
|---|---|
MediaType |
WrapperRepresentation.getMediaType()
|
| Methods in org.restlet.util with parameters of type MediaType | |
|---|---|
void |
WrapperRequest.setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperResponse.setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperRepresentation.setMediaType(MediaType mediaType)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||