| Package | Description |
|---|---|
| javax.ws.rs.client | |
| javax.ws.rs.container | |
| javax.ws.rs.core | |
| javax.ws.rs.ext | |
| javax.ws.rs.sse |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
Entity.getMediaType() |
MediaType |
ClientResponseContext.getMediaType() |
MediaType |
ClientRequestContext.getMediaType() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ClientRequestContext.getAcceptableMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
Invocation.Builder |
Invocation.Builder.accept(MediaType... mediaTypes) |
static <T> Entity<T> |
Entity.entity(T entity,
MediaType mediaType) |
static <T> Entity<T> |
Entity.entity(T entity,
MediaType mediaType,
Annotation[] annotations) |
Invocation.Builder |
WebTarget.request(MediaType... acceptedResponseTypes) |
void |
ClientRequestContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ContainerResponseContext.getMediaType() |
MediaType |
ContainerRequestContext.getMediaType() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ContainerRequestContext.getAcceptableMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerResponseContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType) |
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaType.APPLICATION_ATOM_XML_TYPE |
static MediaType |
MediaType.APPLICATION_FORM_URLENCODED_TYPE |
static MediaType |
MediaType.APPLICATION_JSON_PATCH_JSON_TYPE |
static MediaType |
MediaType.APPLICATION_JSON_TYPE |
static MediaType |
MediaType.APPLICATION_OCTET_STREAM_TYPE |
static MediaType |
MediaType.APPLICATION_SVG_XML_TYPE |
static MediaType |
MediaType.APPLICATION_XHTML_XML_TYPE |
static MediaType |
MediaType.APPLICATION_XML_TYPE |
static MediaType |
MediaType.MULTIPART_FORM_DATA_TYPE |
static MediaType |
MediaType.SERVER_SENT_EVENTS_TYPE |
static MediaType |
MediaType.TEXT_HTML_TYPE |
static MediaType |
MediaType.TEXT_PLAIN_TYPE |
static MediaType |
MediaType.TEXT_XML_TYPE |
static MediaType |
MediaType.WILDCARD_TYPE |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
Variant.getMediaType() |
abstract MediaType |
Response.getMediaType() |
MediaType |
HttpHeaders.getMediaType() |
static MediaType |
MediaType.valueOf(String type) |
MediaType |
MediaType.withCharset(String charset) |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
HttpHeaders.getAcceptableMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.isCompatible(MediaType other) |
static Variant.VariantListBuilder |
Variant.mediaTypes(MediaType... mediaTypes) |
abstract Variant.VariantListBuilder |
Variant.VariantListBuilder.mediaTypes(MediaType... mediaTypes) |
static Response.ResponseBuilder |
Response.ok(Object entity,
MediaType type) |
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(MediaType type) |
| Constructor and Description |
|---|
Variant(MediaType mediaType,
Locale language,
String encoding) |
Variant(MediaType mediaType,
String language,
String encoding) |
Variant(MediaType mediaType,
String language,
String country,
String encoding) |
Variant(MediaType mediaType,
String language,
String country,
String languageVariant,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
InterceptorContext.getMediaType() |
| Modifier and Type | Method and Description |
|---|---|
<T> ContextResolver<T> |
Providers.getContextResolver(Class<T> contextType,
MediaType mediaType) |
<T> MessageBodyReader<T> |
Providers.getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
<T> MessageBodyWriter<T> |
Providers.getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
default long |
MessageBodyWriter.getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
MessageBodyReader.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
MessageBodyWriter.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
T |
MessageBodyReader.readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
void |
InterceptorContext.setMediaType(MediaType mediaType) |
void |
MessageBodyWriter.writeTo(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
OutboundSseEvent.getMediaType() |
| Modifier and Type | Method and Description |
|---|---|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.mediaType(MediaType mediaType) |
<T> T |
InboundSseEvent.readData(Class<T> messageType,
MediaType mediaType) |
<T> T |
InboundSseEvent.readData(GenericType<T> type,
MediaType mediaType) |
Copyright © 2018 The Apache Software Foundation. All rights reserved.