|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use MediaType | |
|---|---|
| javax.ws.rs.client | The JAX-RS client API |
| javax.ws.rs.container | Container-specific JAX-RS API. |
| 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. |
| org.glassfish.jersey.client | Jersey client-side classes. |
| org.glassfish.jersey.internal | Common Jersey internal API classes. |
| org.glassfish.jersey.internal.inject | Common Jersey internal injection utility classes. |
| org.glassfish.jersey.message | Common Jersey messaging classes. |
| org.glassfish.jersey.message.internal | Common Jersey internal messaging classes. |
| org.glassfish.jersey.server | Jersey server-side classes. |
| org.glassfish.jersey.server.filter | Provides core server filters. |
| org.glassfish.jersey.server.model | Jersey server-side application & resource modeling classes. |
| org.glassfish.jersey.server.model.internal | |
| org.glassfish.jersey.server.wadl | |
| org.glassfish.jersey.server.wadl.internal | |
| org.glassfish.jersey.server.wadl.internal.generators | |
| org.glassfish.jersey.server.wadl.internal.generators.resourcedoc | |
| org.glassfish.jersey.spi | Common Jersey service provider contract (SPI) classes. |
| Uses of MediaType in javax.ws.rs.client |
|---|
| Methods in javax.ws.rs.client that return MediaType | |
|---|---|
MediaType |
ClientResponseContext.getMediaType()
Get the media type of the entity. |
MediaType |
ClientRequestContext.getMediaType()
Get the media type of the entity. |
MediaType |
Entity.getMediaType()
Get entity media type. |
| Methods in javax.ws.rs.client that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
ClientRequestContext.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response. |
| Methods in javax.ws.rs.client with parameters of type MediaType | ||
|---|---|---|
Invocation.Builder |
Invocation.Builder.accept(MediaType... mediaTypes)
Add the accepted response media types. |
|
static
|
Entity.entity(T entity,
MediaType mediaType)
Create an entity using a supplied content media type. |
|
static
|
Entity.entity(T entity,
MediaType mediaType,
Annotation[] annotations)
Create an entity using a supplied content media type. |
|
Invocation.Builder |
WebTarget.request(MediaType... acceptedResponseTypes)
Start building a request to the targeted web resource and define the accepted response media types. |
|
void |
ClientRequestContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message entity, including the attached annotations and the media type. |
|
| Uses of MediaType in javax.ws.rs.container |
|---|
| Methods in javax.ws.rs.container that return MediaType | |
|---|---|
MediaType |
ContainerResponseContext.getMediaType()
Get the media type of the entity. |
MediaType |
ContainerRequestContext.getMediaType()
Get the media type of the entity. |
| Methods in javax.ws.rs.container that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
ContainerRequestContext.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response. |
| Methods in javax.ws.rs.container with parameters of type MediaType | |
|---|---|
void |
ContainerResponseContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message entity, including the attached annotations and the media type. |
| Uses of MediaType in javax.ws.rs.core |
|---|
| Fields in javax.ws.rs.core declared as MediaType | |
|---|---|
static MediaType |
MediaType.APPLICATION_ATOM_XML_TYPE
A MediaType constant representing ""application/atom+xml"" media type. |
static MediaType |
MediaType.APPLICATION_FORM_URLENCODED_TYPE
A MediaType constant representing ""application/x-www-form-urlencoded"" media type. |
static MediaType |
MediaType.APPLICATION_JSON_TYPE
A MediaType constant representing ""application/json"" media type. |
static MediaType |
MediaType.APPLICATION_OCTET_STREAM_TYPE
A MediaType constant representing ""application/octet-stream"" media type. |
static MediaType |
MediaType.APPLICATION_SVG_XML_TYPE
A MediaType constant representing ""application/svg+xml"" media type. |
static MediaType |
MediaType.APPLICATION_XHTML_XML_TYPE
A MediaType constant representing ""application/xhtml+xml"" media type. |
static MediaType |
MediaType.APPLICATION_XML_TYPE
A MediaType constant representing ""application/xml"" media type. |
static MediaType |
MediaType.MULTIPART_FORM_DATA_TYPE
A MediaType constant representing ""multipart/form-data"" media type. |
static MediaType |
MediaType.TEXT_HTML_TYPE
A MediaType constant representing ""text/html"" media type. |
static MediaType |
MediaType.TEXT_PLAIN_TYPE
A MediaType constant representing ""text/plain"" media type. |
static MediaType |
MediaType.TEXT_XML_TYPE
A MediaType constant representing ""text/xml"" media type. |
static MediaType |
MediaType.WILDCARD_TYPE
A MediaType constant representing wildcard ""*/*"" media type. |
| Methods in javax.ws.rs.core that return MediaType | |
|---|---|
MediaType |
Variant.getMediaType()
Get the media type of the variant. |
MediaType |
HttpHeaders.getMediaType()
Get the media type of the request entity. |
abstract MediaType |
Response.getMediaType()
Get the media type of the message entity. |
static MediaType |
MediaType.valueOf(String type)
Creates a new instance of MediaType by parsing the supplied string. |
MediaType |
MediaType.withCharset(String charset)
Create a new MediaType instance with the same type, subtype and parameters
copied from the original instance and the supplied ""charset"" parameter. |
| Methods in javax.ws.rs.core that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
HttpHeaders.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response. |
| 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. |
static Variant.VariantListBuilder |
Variant.mediaTypes(MediaType... mediaTypes)
Create a Variant.VariantListBuilder initialized with a set of supported
media types. |
abstract Variant.VariantListBuilder |
Variant.VariantListBuilder.mediaTypes(MediaType... mediaTypes)
Set the media type(s) for this variant. |
static Response.ResponseBuilder |
Response.ok(Object entity,
MediaType type)
Create a new ResponseBuilder that contains a representation. |
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(MediaType type)
Set the message entity media type. |
| Constructors in javax.ws.rs.core with parameters of type MediaType | |
|---|---|
Variant(MediaType mediaType,
Locale language,
String encoding)
Create a new instance of Variant. |
|
Variant(MediaType mediaType,
String language,
String encoding)
Create a new instance of Variant. |
|
Variant(MediaType mediaType,
String language,
String country,
String encoding)
Create a new instance of Variant. |
|
Variant(MediaType mediaType,
String language,
String country,
String languageVariant,
String encoding)
Create a new instance of Variant. |
|
| Uses of MediaType in javax.ws.rs.ext |
|---|
| Methods in javax.ws.rs.ext that return MediaType | |
|---|---|
MediaType |
InterceptorContext.getMediaType()
Get media type of HTTP entity. |
| Methods in javax.ws.rs.ext with parameters of type MediaType | ||
|---|---|---|
|
Providers.getContextResolver(Class<T> contextType,
MediaType mediaType)
Get a context resolver for a particular type of context and media type. |
|
|
Providers.getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Get a message body reader that matches a set of criteria. |
|
|
Providers.getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Get a message body writer that matches a set of criteria. |
|
long |
MessageBodyWriter.getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Originally, the method has been called before writeTo to ascertain the length in bytes of
the serialized form of t. |
|
boolean |
MessageBodyReader.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyReader can produce an instance of a particular type. |
|
boolean |
MessageBodyWriter.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyWriter supports a particular type. |
|
T |
MessageBodyReader.readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
Read a type from the InputStream. |
|
void |
InterceptorContext.setMediaType(MediaType mediaType)
Update media type of HTTP entity. |
|
void |
MessageBodyWriter.writeTo(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
Write a type to an HTTP message. |
|
| Uses of MediaType in org.glassfish.jersey.client |
|---|
| Methods in org.glassfish.jersey.client that return MediaType | |
|---|---|
MediaType |
ChunkedInput.getChunkType()
Get chunk data media type. |
| Methods in org.glassfish.jersey.client with parameters of type MediaType | |
|---|---|
void |
ClientRequest.accept(MediaType... types)
Add new accepted types to the message headers. |
JerseyInvocation.Builder |
JerseyInvocation.Builder.accept(MediaType... mediaTypes)
|
JerseyInvocation.Builder |
JerseyWebTarget.request(MediaType... acceptedResponseTypes)
|
void |
ChunkedInput.setChunkType(MediaType mediaType)
Set custom chunk data media type. |
void |
ClientRequest.type(MediaType type)
Set message content type. |
| Constructors in org.glassfish.jersey.client with parameters of type MediaType | |
|---|---|
ChunkedInput(Type chunkType,
InputStream inputStream,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> headers,
MessageBodyWorkers messageBodyWorkers,
PropertiesDelegate propertiesDelegate)
Package-private constructor used by the ChunkedInputReader. |
|
| Uses of MediaType in org.glassfish.jersey.internal |
|---|
| Methods in org.glassfish.jersey.internal with parameters of type MediaType | ||
|---|---|---|
|
JaxrsProviders.getContextResolver(Class<T> contextType,
MediaType mediaType)
|
|
|
JaxrsProviders.getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
|
JaxrsProviders.getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
|
ContextResolverFactory.resolve(Type t,
MediaType m)
|
|
| Uses of MediaType in org.glassfish.jersey.internal.inject |
|---|
| Methods in org.glassfish.jersey.internal.inject that return MediaType | |
|---|---|
MediaType |
HttpHeadersInjectee.getMediaType()
|
| Methods in org.glassfish.jersey.internal.inject that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
HttpHeadersInjectee.getAcceptableMediaTypes()
|
| Uses of MediaType in org.glassfish.jersey.message |
|---|
| Methods in org.glassfish.jersey.message that return MediaType | |
|---|---|
MediaType |
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<?> type,
Type genericType,
Annotation[] annotations,
List<MediaType> acceptableMediaTypes)
Get the most acceptable media type supported for a Java type given a set of acceptable media types. |
| Methods in org.glassfish.jersey.message that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
MessageBodyWorkers.getMessageBodyReaderMediaTypes(Class<?> type,
Type genericType,
Annotation[] annotations)
Get the list of media types supported for a Java type. |
List<MediaType> |
MessageBodyWorkers.getMessageBodyReaderMediaTypesByType(Class<?> type)
Get the list of media types supported for a Java type. |
List<MediaType> |
MessageBodyWorkers.getMessageBodyWriterMediaTypes(Class<?> type,
Type genericType,
Annotation[] annotations)
Get the list of media types supported for a Java type. |
List<MediaType> |
MessageBodyWorkers.getMessageBodyWriterMediaTypesByType(Class<?> type)
Get the list of media types supported for a Java type. |
Map<MediaType,List<MessageBodyReader>> |
MessageBodyWorkers.getReaders(MediaType mediaType)
Get the map of media type to list of message body writers that are compatible with a media type. |
Map<MediaType,List<MessageBodyWriter>> |
MessageBodyWorkers.getWriters(MediaType mediaType)
Get the map of media type to list of message body writers that are compatible with a media type. |
| Methods in org.glassfish.jersey.message with parameters of type MediaType | ||
|---|---|---|
|
MessageBodyWorkers.getMessageBodyReader(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Get a message body reader that matches a set of criteria. |
|
|
MessageBodyWorkers.getMessageBodyWriter(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Get a message body writer that matches a set of criteria. |
|
Map<MediaType,List<MessageBodyReader>> |
MessageBodyWorkers.getReaders(MediaType mediaType)
Get the map of media type to list of message body writers that are compatible with a media type. |
|
Map<MediaType,List<MessageBodyWriter>> |
MessageBodyWorkers.getWriters(MediaType mediaType)
Get the map of media type to list of message body writers that are compatible with a media type. |
|
Object |
MessageBodyWorkers.readFrom(Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
PropertiesDelegate propertiesDelegate,
InputStream entityStream,
Iterable<ReaderInterceptor> readerInterceptors,
boolean translateNce)
Reads a type from the entityStream using interceptors. |
|
OutputStream |
MessageBodyWorkers.writeTo(Object entity,
Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
PropertiesDelegate propertiesDelegate,
OutputStream entityStream,
Iterable<WriterInterceptor> writerInterceptors)
Writers a type to the entityStream using interceptors. |
|
| Method parameters in org.glassfish.jersey.message with type arguments of type MediaType | |
|---|---|
MediaType |
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<?> type,
Type genericType,
Annotation[] annotations,
List<MediaType> acceptableMediaTypes)
Get the most acceptable media type supported for a Java type given a set of acceptable media types. |
String |
MessageBodyWorkers.readersToString(Map<MediaType,List<MessageBodyReader>> readers)
Convert a map media type to list of message body readers to a string. |
String |
MessageBodyWorkers.writersToString(Map<MediaType,List<MessageBodyWriter>> writers)
Convert a map media type to list of message body writers to a string. |
| Uses of MediaType in org.glassfish.jersey.message.internal |
|---|
| Subclasses of MediaType in org.glassfish.jersey.message.internal | |
|---|---|
class |
AcceptableMediaType
An acceptable media type. |
class |
QualitySourceMediaType
A quality source media type. |
| Fields in org.glassfish.jersey.message.internal declared as MediaType | |
|---|---|
static MediaType |
MediaTypes.FAST_INFOSET
Fast infoset media type. |
static MediaType |
MediaTypes.GENERAL_MEDIA_TYPE
The general media type corresponding to \*\/*. |
static MediaType |
MediaTypes.WADL
WADL Media type. |
| Fields in org.glassfish.jersey.message.internal with type parameters of type MediaType | |
|---|---|
static List<MediaType> |
MediaTypes.GENERAL_MEDIA_TYPE_LIST
A singleton list containing the general media type. |
static List<MediaType> |
MediaTypes.GENERAL_QUALITY_SOURCE_MEDIA_TYPE_LIST
A singleton list containing the general media type. |
static Comparator<MediaType> |
MediaTypes.MEDIA_TYPE_COMPARATOR
Comparator for media types. |
static KeyComparator<MediaType> |
MessageBodyFactory.MEDIA_TYPE_COMPARATOR
Media type comparator. |
static Comparator<List<? extends MediaType>> |
MediaTypes.MEDIA_TYPE_LIST_COMPARATOR
Comparator for lists of media types. |
| Methods in org.glassfish.jersey.message.internal that return MediaType | |
|---|---|
MediaType |
MediaTypeProvider.fromString(String header)
|
MediaType |
InboundMessageContext.getMediaType()
Get the media type of the entity. |
MediaType |
OutboundJaxrsResponse.getMediaType()
|
MediaType |
OutboundMessageContext.getMediaType()
Get the media type of the entity. |
MediaType |
MessageBodyFactory.getMessageBodyWriterMediaType(Class<?> c,
Type t,
Annotation[] as,
List<MediaType> acceptableMediaTypes)
|
static MediaType |
MediaTypes.getTypeWildCart(MediaType mediaType)
Returns MediaType with wildcard in subtype. |
static MediaType |
MediaTypes.mostSpecific(MediaType m1,
MediaType m2)
Get the most specific media type from a pair of media types. |
static MediaType |
MediaTypes.stripQualityParams(MediaType mediaType)
Strips any quality parameters, i.e. |
static MediaType |
MediaTypeProvider.valueOf(HttpHeaderReader reader)
|
| Methods in org.glassfish.jersey.message.internal that return types with arguments of type MediaType | |
|---|---|
static List<MediaType> |
MediaTypes.createFrom(Consumes annotation)
Create the list of media types from the values declared in the Consumes
annotation. |
static List<MediaType> |
MediaTypes.createFrom(Produces annotation)
Create the list of media types from the values declared in the Produces
annotation. |
static List<MediaType> |
MediaTypes.createFrom(String[] mediaTypes)
Create a list of media type from a string array of media types. |
static List<MediaType> |
MediaTypes.createQualitySourceMediaTypes(Produces mime)
Create a list of quality source media type from the Produces annotation. |
List<MediaType> |
OutboundMessageContext.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the message. |
List<MediaType> |
MessageBodyFactory.getMessageBodyReaderMediaTypes(Class<?> type,
Type genericType,
Annotation[] annotations)
|
List<MediaType> |
MessageBodyFactory.getMessageBodyReaderMediaTypesByType(Class<?> type)
|
List<MediaType> |
MessageBodyFactory.getMessageBodyWriterMediaTypes(Class<?> c,
Type t,
Annotation[] as)
|
List<MediaType> |
MessageBodyFactory.getMessageBodyWriterMediaTypesByType(Class<?> type)
|
Map<MediaType,List<MessageBodyReader>> |
MessageBodyFactory.getReaders(MediaType mediaType)
|
Map<MediaType,List<MessageBodyWriter>> |
MessageBodyFactory.getWriters(MediaType mediaType)
|
static List<MediaType> |
HttpHeaderReader.readMediaTypes(List<MediaType> l,
String header)
|
| Methods in org.glassfish.jersey.message.internal with parameters of type MediaType | ||
|---|---|---|
static Charset |
ReaderWriter.getCharset(MediaType m)
Get the character set from a media type. |
|
static Charset |
AbstractMessageReaderWriterProvider.getCharset(MediaType m)
Get the character set from a media type. |
|
protected Marshaller |
AbstractJaxbProvider.getMarshaller(Class type,
MediaType mt)
|
|
|
MessageBodyFactory.getMessageBodyReader(Class<T> c,
Type t,
Annotation[] as,
MediaType mediaType)
|
|
|
MessageBodyFactory.getMessageBodyWriter(Class<T> c,
Type t,
Annotation[] as,
MediaType mediaType)
|
|
static int |
MediaTypes.getQuality(MediaType mt)
Reads quality factor from given media type. |
|
static int |
QualitySourceMediaType.getQualitySource(MediaType mediaType)
Extract quality source information from the supplied MediaType value. |
|
Map<MediaType,List<MessageBodyReader>> |
MessageBodyFactory.getReaders(MediaType mediaType)
|
|
long |
ByteArrayProvider.getSize(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
long |
FileProvider.getSize(File t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
long |
InputStreamProvider.getSize(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
long |
SourceProvider.SourceWriter.getSize(Source o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
long |
StreamingOutputProvider.getSize(StreamingOutput o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
long |
AbstractMessageReaderWriterProvider.getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
static MediaType |
MediaTypes.getTypeWildCart(MediaType mediaType)
Returns MediaType with wildcard in subtype. |
|
protected Unmarshaller |
AbstractJaxbProvider.getUnmarshaller(Class type,
MediaType mt)
|
|
Map<MediaType,List<MessageBodyWriter>> |
MessageBodyFactory.getWriters(MediaType mediaType)
|
|
protected XMLStreamReader |
XmlCollectionJaxbProvider.getXMLStreamReader(Class<?> elementType,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
|
|
protected abstract XMLStreamReader |
AbstractCollectionJaxbProvider.getXMLStreamReader(Class<?> elementType,
MediaType mediaType,
Unmarshaller unmarshaller,
InputStream entityStream)
Get the XMLStreamReader for unmarshalling. |
|
boolean |
FileProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
ByteArrayProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
DataSourceProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
DocumentProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
RenderedImageProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractRootElementJaxbProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
FormMultivaluedMapProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractCollectionJaxbProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractJaxbElementProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
InputStreamProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
FormProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
ReaderProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
SourceProvider.StreamSourceReader.isReadable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
|
boolean |
SourceProvider.SaxSourceReader.isReadable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
|
boolean |
SourceProvider.DomSourceReader.isReadable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
|
boolean |
XmlRootObjectJaxbProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
protected boolean |
XmlJaxbElementProvider.General.isSupported(MediaType m)
|
|
protected boolean |
XmlCollectionJaxbProvider.General.isSupported(MediaType m)
|
|
protected boolean |
XmlRootObjectJaxbProvider.General.isSupported(MediaType m)
|
|
protected boolean |
XmlRootElementJaxbProvider.General.isSupported(MediaType m)
|
|
protected boolean |
AbstractJaxbProvider.isSupported(MediaType m)
|
|
boolean |
FileProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
ByteArrayProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
DataSourceProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
StreamingOutputProvider.isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
|
boolean |
DocumentProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
RenderedImageProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractRootElementJaxbProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
FormMultivaluedMapProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractCollectionJaxbProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
AbstractJaxbElementProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
InputStreamProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
FormProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
ReaderProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
|
boolean |
SourceProvider.SourceWriter.isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType)
|
|
boolean |
XmlRootObjectJaxbProvider.isWriteable(Class<?> arg0,
Type arg1,
Annotation[] arg2,
MediaType mediaType)
|
|
VariantListBuilder |
VariantListBuilder.mediaTypes(MediaType... mediaTypes)
|
|
static MediaType |
MediaTypes.mostSpecific(MediaType m1,
MediaType m2)
Get the most specific media type from a pair of media types. |
|
protected JAXBElement<?> |
XmlJaxbElementProvider.readFrom(Class<?> type,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
|
|
protected abstract JAXBElement<?> |
AbstractJaxbElementProvider.readFrom(Class<?> type,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
|
|
Object |
MessageBodyFactory.readFrom(Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
PropertiesDelegate propertiesDelegate,
InputStream entityStream,
Iterable<ReaderInterceptor> readerInterceptors,
boolean translateNce)
|
|
byte[] |
ByteArrayProvider.readFrom(Class<byte[]> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
DataSource |
DataSourceProvider.readFrom(Class<DataSource> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
Document |
DocumentProvider.readFrom(Class<Document> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
DOMSource |
SourceProvider.DomSourceReader.readFrom(Class<DOMSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
File |
FileProvider.readFrom(Class<File> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
Form |
FormProvider.readFrom(Class<Form> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
InputStream |
InputStreamProvider.readFrom(Class<InputStream> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
JAXBElement<?> |
AbstractJaxbElementProvider.readFrom(Class<JAXBElement<?>> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
|
MultivaluedMap<String,String> |
FormMultivaluedMapProvider.readFrom(Class<MultivaluedMap<String,String>> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
protected Object |
AbstractRootElementJaxbProvider.readFrom(Class<Object> type,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
Unmarshal a JAXB type. |
|
protected Object |
XmlRootElementJaxbProvider.readFrom(Class<Object> type,
MediaType mediaType,
Unmarshaller u,
InputStream entityStream)
|
|
Object |
AbstractRootElementJaxbProvider.readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
|
Object |
AbstractCollectionJaxbProvider.readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
|
Object |
XmlRootObjectJaxbProvider.readFrom(Class<Object> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
|
Reader |
ReaderProvider.readFrom(Class<Reader> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream inputStream)
|
|
RenderedImage |
RenderedImageProvider.readFrom(Class<RenderedImage> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
SAXSource |
SourceProvider.SaxSourceReader.readFrom(Class<SAXSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
StreamSource |
SourceProvider.StreamSourceReader.readFrom(Class<StreamSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
|
|
|
AbstractFormProvider.readFrom(M map,
MediaType mediaType,
boolean decode,
InputStream entityStream)
|
|
static String |
ReaderWriter.readFromAsString(InputStream in,
MediaType type)
Read the bytes of an input stream and convert to a string. |
|
static String |
AbstractMessageReaderWriterProvider.readFromAsString(InputStream in,
MediaType type)
Read the bytes of an input stream and convert to a string. |
|
void |
OutboundMessageContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message message entity. |
|
void |
OutboundMessageContext.setMediaType(MediaType mediaType)
Set the message content media type. |
|
static MediaType |
MediaTypes.stripQualityParams(MediaType mediaType)
Strips any quality parameters, i.e. |
|
String |
MediaTypeProvider.toString(MediaType header)
|
|
Response.ResponseBuilder |
OutboundJaxrsResponse.Builder.type(MediaType type)
|
|
static boolean |
MediaTypes.typeEqual(MediaType m1,
MediaType m2)
Determine if the two media types are type-equal (their type
and subtype are equal). |
|
void |
XmlCollectionJaxbProvider.writeList(Class<?> elementType,
Collection<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
|
|
abstract void |
AbstractCollectionJaxbProvider.writeList(Class<?> elementType,
Collection<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
Write a collection of JAXB objects as child elements of the root element. |
|
void |
ByteArrayProvider.writeTo(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
DataSourceProvider.writeTo(DataSource t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
DocumentProvider.writeTo(Document t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
FileProvider.writeTo(File t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
FormProvider.writeTo(Form t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
InputStreamProvider.writeTo(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
AbstractJaxbElementProvider.writeTo(JAXBElement<?> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
protected void |
XmlJaxbElementProvider.writeTo(JAXBElement<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
|
|
protected abstract void |
AbstractJaxbElementProvider.writeTo(JAXBElement<?> t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
|
|
|
AbstractFormProvider.writeTo(M t,
MediaType mediaType,
OutputStream entityStream)
|
|
void |
FormMultivaluedMapProvider.writeTo(MultivaluedMap<String,String> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
AbstractRootElementJaxbProvider.writeTo(Object t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
AbstractCollectionJaxbProvider.writeTo(Object t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
XmlRootObjectJaxbProvider.writeTo(Object arg0,
Class<?> arg1,
Type arg2,
Annotation[] arg3,
MediaType arg4,
MultivaluedMap<String,Object> arg5,
OutputStream arg6)
|
|
OutputStream |
MessageBodyFactory.writeTo(Object t,
Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
PropertiesDelegate propertiesDelegate,
OutputStream entityStream,
Iterable<WriterInterceptor> writerInterceptors)
|
|
protected void |
AbstractRootElementJaxbProvider.writeTo(Object t,
MediaType mediaType,
Charset c,
Marshaller m,
OutputStream entityStream)
Marshal an instance of a JAXB type. |
|
void |
ReaderProvider.writeTo(Reader t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
RenderedImageProvider.writeTo(RenderedImage t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
SourceProvider.SourceWriter.writeTo(Source source,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
|
void |
StreamingOutputProvider.writeTo(StreamingOutput o,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entity)
|
|
static void |
ReaderWriter.writeToAsString(String s,
OutputStream out,
MediaType type)
Convert a string to bytes and write those bytes to an output stream. |
|
static void |
AbstractMessageReaderWriterProvider.writeToAsString(String s,
OutputStream out,
MediaType type)
Convert a string to bytes and write those bytes to an output stream. |
|
| Method parameters in org.glassfish.jersey.message.internal with type arguments of type MediaType | |
|---|---|
MediaType |
MessageBodyFactory.getMessageBodyWriterMediaType(Class<?> c,
Type t,
Annotation[] as,
List<MediaType> acceptableMediaTypes)
|
static boolean |
MediaTypes.intersect(List<? extends MediaType> ml1,
List<? extends MediaType> ml2)
Determine if the two list of media types share a common type-equal
sub-list. |
static boolean |
MediaTypes.intersect(List<? extends MediaType> ml1,
List<? extends MediaType> ml2)
Determine if the two list of media types share a common type-equal
sub-list. |
String |
MessageBodyFactory.readersToString(Map<MediaType,List<MessageBodyReader>> readers)
|
static List<MediaType> |
HttpHeaderReader.readMediaTypes(List<MediaType> l,
String header)
|
String |
MessageBodyFactory.writersToString(Map<MediaType,List<MessageBodyWriter>> writers)
|
| Uses of MediaType in org.glassfish.jersey.server |
|---|
| Methods in org.glassfish.jersey.server that return MediaType | |
|---|---|
MediaType |
ContainerResponse.getMediaType()
|
| Methods in org.glassfish.jersey.server that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
ContainerRequest.getAcceptableMediaTypes()
|
| Methods in org.glassfish.jersey.server with parameters of type MediaType | |
|---|---|
long |
ChunkedResponseWriter.getSize(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
boolean |
ChunkedResponseWriter.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
|
void |
ContainerResponse.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
|
void |
ContainerResponse.setMediaType(MediaType mediaType)
Set the message content media type. |
void |
ChunkedResponseWriter.writeTo(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
|
| Uses of MediaType in org.glassfish.jersey.server.filter |
|---|
| Fields in org.glassfish.jersey.server.filter with type parameters of type MediaType | |
|---|---|
protected Map<String,MediaType> |
UriConnegFilter.mediaTypeMappings
|
| Constructor parameters in org.glassfish.jersey.server.filter with type arguments of type MediaType | |
|---|---|
UriConnegFilter(Map<String,MediaType> mediaTypeMappings,
Map<String,String> languageMappings)
Create a filter with suffix to media type mappings and suffix to language mappings. |
|
| Uses of MediaType in org.glassfish.jersey.server.model |
|---|
| Methods in org.glassfish.jersey.server.model that return types with arguments of type MediaType | |
|---|---|
List<MediaType> |
Consuming.getConsumedTypes()
Get the consumed media types supported by the component. |
List<MediaType> |
ResourceMethod.getConsumedTypes()
|
List<MediaType> |
ResourceMethod.getProducedTypes()
|
List<MediaType> |
Producing.getProducedTypes()
Get the produced media types supported by the component. |
| Methods in org.glassfish.jersey.server.model with parameters of type MediaType | |
|---|---|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(MediaType... types)
Add consumed media types supported by the component. |
ResourceMethod.Builder |
ResourceMethod.Builder.produces(MediaType... types)
Add produced media types supported by the component. |
| Method parameters in org.glassfish.jersey.server.model with type arguments of type MediaType | |
|---|---|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(Collection<MediaType> types)
Add consumed media types supported by the component. |
ResourceMethod.Builder |
ResourceMethod.Builder.produces(Collection<MediaType> types)
Add produced media types supported by the component. |
| Uses of MediaType in org.glassfish.jersey.server.model.internal |
|---|
| Constructors in org.glassfish.jersey.server.model.internal with parameters of type MediaType | |
|---|---|
ModelProcessorUtil.Method(String httpMethod,
MediaType consumes,
MediaType produces,
Class<? extends Inflector<ContainerRequestContext,Response>> inflector)
Create new method instance. |
|
ModelProcessorUtil.Method(String httpMethod,
MediaType consumes,
MediaType produces,
Inflector<ContainerRequestContext,Response> inflector)
Create new method instance. |
|
ModelProcessorUtil.Method(String path,
String httpMethod,
MediaType consumes,
MediaType produces,
Class<? extends Inflector<ContainerRequestContext,Response>> inflector)
Create new method instance. |
|
ModelProcessorUtil.Method(String path,
String httpMethod,
MediaType consumes,
MediaType produces,
Inflector<ContainerRequestContext,Response> inflector)
Create new method instance. |
|
| Uses of MediaType in org.glassfish.jersey.server.wadl |
|---|
| Methods in org.glassfish.jersey.server.wadl with parameters of type MediaType | |
|---|---|
Representation |
WadlGenerator.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType)
|
| Uses of MediaType in org.glassfish.jersey.server.wadl.internal |
|---|
| Methods in org.glassfish.jersey.server.wadl.internal that return MediaType | |
|---|---|
MediaType |
ApplicationDescription.ExternalGrammar.getType()
|
| Methods in org.glassfish.jersey.server.wadl.internal with parameters of type MediaType | |
|---|---|
Representation |
WadlGeneratorImpl.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType)
|
Representation |
WadlGeneratorImpl.createResponseRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType)
|
| Constructors in org.glassfish.jersey.server.wadl.internal with parameters of type MediaType | |
|---|---|
ApplicationDescription.ExternalGrammar(MediaType type,
byte[] content)
|
|
| Uses of MediaType in org.glassfish.jersey.server.wadl.internal.generators |
|---|
| Methods in org.glassfish.jersey.server.wadl.internal.generators with parameters of type MediaType | |
|---|---|
Representation |
WadlGeneratorJAXBGrammarGenerator.createRequestRepresentation(Resource ar,
ResourceMethod arm,
MediaType mt)
|
Representation |
WadlGeneratorGrammarsSupport.createRequestRepresentation(Resource ar,
ResourceMethod arm,
MediaType mt)
|
Representation |
WadlGeneratorApplicationDoc.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType)
|
| Uses of MediaType in org.glassfish.jersey.server.wadl.internal.generators.resourcedoc |
|---|
| Methods in org.glassfish.jersey.server.wadl.internal.generators.resourcedoc with parameters of type MediaType | |
|---|---|
Representation |
WadlGeneratorResourceDocSupport.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType)
|
| Uses of MediaType in org.glassfish.jersey.spi |
|---|
| Methods in org.glassfish.jersey.spi with parameters of type MediaType | ||
|---|---|---|
|
ContextResolvers.resolve(Type type,
MediaType mediaType)
Get ContextResolver<T> instance for a given type
and media type. |
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||