|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MediaType | |
---|---|
org.restlet | Core classes of the API. |
org.restlet.data | Element of information handled by a component via a connector. |
org.restlet.resource | Common resource and representation data elements. |
org.restlet.service | Service classes used by applications and components. |
org.restlet.util | Utility classes and interfaces used in the rest of the API. |
Uses of MediaType in org.restlet |
---|
Methods in org.restlet that return MediaType | |
---|---|
MediaType |
Transformer.getResultMediaType()
Returns the media type of the result representation. |
Methods in org.restlet with parameters of type MediaType | |
---|---|
void |
Transformer.setResultMediaType(MediaType resultMediaType)
Sets the media type of the result representation. |
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 MediaTypes of the given array of MediaTypes. |
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. |
Methods in org.restlet.data with parameters of type MediaType | |
---|---|
static MediaType |
MediaType.getMostSpecific(MediaType... mediaTypes)
Returns the first of the most specific MediaTypes of the given array of MediaTypes. |
boolean |
MediaType.includes(MediaType included)
Indicates if a given media type is included in the current one. |
boolean |
MediaType.isCompatible(MediaType otherMediaType)
Checks if this MediaType is compatible with the given media type. |
void |
Message.setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
Method parameters in org.restlet.data with type arguments of type MediaType | |
---|---|
void |
ClientInfo.setAcceptedMediaTypes(List<Preference<MediaType>> acceptedMediaTypes)
Sets the media type preferences. |
Uses of MediaType in org.restlet.resource |
---|
Methods in org.restlet.resource that return MediaType | |
---|---|
MediaType |
Variant.getMediaType()
Returns the media type. |
Methods in org.restlet.resource with parameters of type MediaType | |
---|---|
void |
Variant.setMediaType(MediaType mediaType)
Sets the media type. |
Constructors in org.restlet.resource with parameters of type MediaType | |
---|---|
ChannelRepresentation(MediaType mediaType)
Constructor. |
|
CharacterRepresentation(MediaType mediaType)
Constructor. |
|
DomRepresentation(MediaType mediaType)
Constructor for an empty document. |
|
DomRepresentation(MediaType mediaType,
Document xmlDocument)
Constructor from an existing DOM document. |
|
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. |
|
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. |
|
SaxRepresentation(MediaType mediaType)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
Document xmlDocument)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
InputSource xmlSource)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
SAXSource xmlSource)
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. |
|
WritableRepresentation(MediaType mediaType)
Constructor. |
|
WriterRepresentation(MediaType mediaType)
Constructor. |
|
WriterRepresentation(MediaType mediaType,
long expectedSize)
Constructor. |
|
XmlRepresentation(MediaType mediaType)
Constructor. |
|
XmlRepresentation(MediaType mediaType,
long expectedSize)
Constructor. |
Uses of MediaType in org.restlet.service |
---|
Methods in org.restlet.service that return MediaType | |
---|---|
MediaType |
MetadataService.getDefaultMediaType()
Returns the default media type for local representations. |
Methods in org.restlet.service with parameters of type MediaType | |
---|---|
void |
MetadataService.setDefaultMediaType(MediaType defaultMediaType)
Sets the default media type for local representations. |
Uses of MediaType in org.restlet.util |
---|
Methods in org.restlet.util that return MediaType | |
---|---|
MediaType |
WrapperRepresentation.getMediaType()
|
abstract MediaType |
Engine.parseContentType(String contentType)
Parses the given Content Type. |
Methods in org.restlet.util with parameters of type MediaType | |
---|---|
void |
WrapperResponse.setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperRequest.setEntity(String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperRepresentation.setMediaType(MediaType mediaType)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |