|
||||||||||
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(java.lang.String name,
java.lang.String description)
Register a media type as a known type that can later be retrieved using valueOf(String) . |
static MediaType |
MediaType.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 | |
---|---|
java.util.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(java.lang.String value,
MediaType mediaType)
Sets a textual entity. |
Method parameters in org.restlet.data with type arguments of type MediaType | |
---|---|
void |
ClientInfo.setAcceptedMediaTypes(java.util.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,
org.w3c.dom.Document xmlDocument)
Constructor from an existing DOM document. |
|
FileRepresentation(java.io.File file,
MediaType mediaType)
Constructor that does not set an expiration date for file |
|
FileRepresentation(java.io.File file,
MediaType mediaType,
int timeToLive)
Constructor. |
|
FileRepresentation(java.lang.String path,
MediaType mediaType)
Constructor that does not set an expiration date for path |
|
FileRepresentation(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. |
|
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. |
|
SaxRepresentation(MediaType mediaType)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
org.w3c.dom.Document xmlDocument)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
org.xml.sax.InputSource xmlSource)
Constructor. |
|
SaxRepresentation(MediaType mediaType,
javax.xml.transform.sax.SAXSource xmlSource)
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. |
|
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(java.lang.String contentType)
Parses the given Content Type. |
Methods in org.restlet.util with parameters of type MediaType | |
---|---|
void |
WrapperRequest.setEntity(java.lang.String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperResponse.setEntity(java.lang.String value,
MediaType mediaType)
Sets a textual entity. |
void |
WrapperRepresentation.setMediaType(MediaType mediaType)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |