|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use MediaType | |
---|---|
javax.ws.rs.core | Low-level interfaces and annotations used to create RESTful service resources. |
javax.ws.rs.ext | APIs that provide extensions to the types supported by the JAX-RS API. |
Uses of MediaType in javax.ws.rs.core |
---|
Fields in javax.ws.rs.core declared as MediaType | |
---|---|
static MediaType |
MediaType.APPLICATION_ATOM_XML_TYPE
"application/atom+xml" |
static MediaType |
MediaType.APPLICATION_FORM_URLENCODED_TYPE
"application/x-www-form-urlencoded" |
static MediaType |
MediaType.APPLICATION_JSON_TYPE
"application/json" |
static MediaType |
MediaType.APPLICATION_OCTET_STREAM_TYPE
"application/octet-stream" |
static MediaType |
MediaType.APPLICATION_SVG_XML_TYPE
"application/svg+xml" |
static MediaType |
MediaType.APPLICATION_XHTML_XML_TYPE
"application/xhtml+xml" |
static MediaType |
MediaType.APPLICATION_XML_TYPE
"application/xml" |
static MediaType |
MediaType.TEXT_HTML_TYPE
"text/html" |
static MediaType |
MediaType.TEXT_PLAIN_TYPE
"text/plain" |
static MediaType |
MediaType.TEXT_XML_TYPE
"text/xml" |
Methods in javax.ws.rs.core that return MediaType | |
---|---|
MediaType |
HttpHeaders.getMediaType()
Get the media type of the request entity |
MediaType |
Variant.getMediaType()
Get the media type of the variant |
static MediaType |
MediaType.parse(java.lang.String type)
Creates a new instance of MediaType by parsing the supplied string. |
Methods in javax.ws.rs.core that return types with arguments of type MediaType | |
---|---|
java.util.List<MediaType> |
HttpHeaders.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response. |
java.util.Map<java.lang.String,MediaType> |
ApplicationConfig.getExtensionMappings()
Get a map of file extension to media type. |
Methods in javax.ws.rs.core with parameters of type MediaType | |
---|---|
boolean |
MediaType.isCompatible(MediaType other)
Check if this media type is compatible with another media type. |
abstract Variant.VariantListBuilder |
Variant.VariantListBuilder.mediaTypes(MediaType... mediaTypes)
Set the media type[s] for this variant. |
static Response.ResponseBuilder |
Response.ok(java.lang.Object entity,
MediaType type)
Create a new ResponseBuilder that contains a representation. |
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(MediaType type)
Set the response media type on the ResponseBuilder. |
Constructors in javax.ws.rs.core with parameters of type MediaType | |
---|---|
Variant(MediaType mediaType,
java.lang.String language,
java.lang.String encoding)
Create a new instance of Variant |
Uses of MediaType in javax.ws.rs.ext |
---|
Methods in javax.ws.rs.ext with parameters of type MediaType | ||
---|---|---|
|
MessageBodyWorkers.getMessageBodyReaders(MediaType mediaType,
java.lang.Class<T> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Get a list of message body readers that match a set of criteria. |
|
|
MessageBodyWorkers.getMessageBodyWriters(MediaType mediaType,
java.lang.Class<T> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations)
Get a list of message body writers that match a set of criteria. |
|
T |
MessageBodyReader.readFrom(java.lang.Class<T> type,
java.lang.reflect.Type genericType,
MediaType mediaType,
java.lang.annotation.Annotation[] annotations,
MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
Read a type from the InputStream . |
|
void |
MessageBodyWriter.writeTo(T t,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
Write a type to an HTTP response. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |