Uses of Class
javax.ws.rs.core.MediaType

Packages that use MediaType
com.restfully.shop.services   
com.sun.jersey.api Provides support for responses and exceptions. 
com.sun.jersey.api.client Provides support for client-side communication with HTTP-based RESTful Web services. 
com.sun.jersey.api.container.filter Provides common server-side filters. 
com.sun.jersey.api.core Provides support for configuration. 
com.sun.jersey.api.model Provides an abstract model of a resource class. 
com.sun.jersey.atom.abdera   
com.sun.jersey.atom.abdera.impl.provider.entity JAX-RS AtomPub Provider Classes 
com.sun.jersey.atom.rome.impl.provider.entity   
com.sun.jersey.core.header Provides support for HTTP headers. 
com.sun.jersey.core.header.reader Provides support for reading HTTP headers. 
com.sun.jersey.core.impl.provider.entity   
com.sun.jersey.core.impl.provider.header   
com.sun.jersey.core.provider Provides support for provider-related classes. 
com.sun.jersey.core.provider.jaxb Provides support for JAXB-related message body readers and writers. 
com.sun.jersey.core.spi.factory Provides support for factories of particular component types. 
com.sun.jersey.core.util Provides support for collection-based classes. 
com.sun.jersey.fastinfoset.impl.provider.entity   
com.sun.jersey.json.impl.provider.entity   
com.sun.jersey.multipart JAX-RS Integration with MIME MultiPart Message Formats 
com.sun.jersey.multipart.file Provides support for body parts that are file attachments. 
com.sun.jersey.multipart.impl   
com.sun.jersey.server.impl.model   
com.sun.jersey.server.impl.model.method   
com.sun.jersey.server.impl.template   
com.sun.jersey.server.impl.uri.rules   
com.sun.jersey.server.wadl Provides support for WADL configuration and generation. 
com.sun.jersey.server.wadl.generators Provides support for JAXB WADL generation. 
com.sun.jersey.server.wadl.generators.resourcedoc Provides support for JAXB WADL generation for resource classes. 
com.sun.jersey.spi Provides support for service providers. 
com.sun.jersey.spi.container Provides support for containers and the web application that manages resource classes. 
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 com.restfully.shop.services
 

Methods in com.restfully.shop.services with parameters of type MediaType
 long JavaMarshaller.getSize(Object o, Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JavaMarshaller.isReadable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JavaMarshaller.isWriteable(Class type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 Object JavaMarshaller.readFrom(Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, InputStream is)
           
 void JavaMarshaller.writeTo(Object o, Class type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap httpHeaders, OutputStream os)
           
 

Uses of MediaType in com.sun.jersey.api
 

Methods in com.sun.jersey.api with parameters of type MediaType
static
<E> JResponse.JResponseBuilder<E>
JResponse.ok(E entity, MediaType type)
          Create a new JResponse.JResponseBuilder that contains a representation.
 B JResponse.AJResponseBuilder.type(MediaType type)
          Set the response media type.
 

Uses of MediaType in com.sun.jersey.api.client
 

Methods in com.sun.jersey.api.client that return MediaType
 MediaType TerminatingClientHandler.RequestEntityWriter.getMediaType()
           
 MediaType ClientResponse.getType()
          Get the media type of the response.
 

Methods in com.sun.jersey.api.client with parameters of type MediaType
 T PartialRequestBuilder.accept(MediaType... types)
           
 T RequestBuilder.accept(MediaType... types)
          Add acceptable media types.
 WebResource.Builder WebResource.accept(MediaType... types)
           
 AsyncWebResource.Builder AsyncWebResource.accept(MediaType... types)
           
 ViewResource.Builder ViewResource.accept(MediaType... types)
           
 AsyncViewResource.Builder AsyncViewResource.accept(MediaType... types)
           
 T PartialRequestBuilder.entity(Object entity, MediaType type)
           
 T RequestBuilder.entity(Object entity, MediaType type)
          Set the request entity it's media type.
 WebResource.Builder WebResource.entity(Object entity, MediaType type)
           
 AsyncWebResource.Builder AsyncWebResource.entity(Object entity, MediaType type)
           
 ViewResource.Builder ViewResource.entity(Object entity, MediaType type)
           
 AsyncViewResource.Builder AsyncViewResource.entity(Object entity, MediaType type)
           
 T PartialRequestBuilder.type(MediaType type)
           
 T RequestBuilder.type(MediaType type)
          Set the media type.
 WebResource.Builder WebResource.type(MediaType type)
           
 AsyncWebResource.Builder AsyncWebResource.type(MediaType type)
           
 ViewResource.Builder ViewResource.type(MediaType type)
           
 AsyncViewResource.Builder AsyncViewResource.type(MediaType type)
           
 

Uses of MediaType in com.sun.jersey.api.container.filter
 

Constructor parameters in com.sun.jersey.api.container.filter with type arguments of type MediaType
UriConnegFilter(Map<String,MediaType> mediaExtentions)
          Create a filter with suffix to media type mappings.
UriConnegFilter(Map<String,MediaType> mediaExtentions, Map<String,String> languageExtentions)
          Create a filter with suffix to media type mappings and suffix to langauge mappings.
 

Uses of MediaType in com.sun.jersey.api.core
 

Methods in com.sun.jersey.api.core that return MediaType
 MediaType HttpRequestContext.getAcceptableMediaType(List<MediaType> mediaTypes)
          Deprecated.  
 MediaType HttpResponseContext.getMediaType()
          Get the media type of the response entity.
 

Methods in com.sun.jersey.api.core that return types with arguments of type MediaType
 List<MediaType> HttpRequestContext.getAcceptableMediaTypes(List<QualitySourceMediaType> priorityMediaTypes)
          Deprecated.  
 Map<String,MediaType> ResourceConfig.getMediaTypeMappings()
          Get a map of file extension to media type.
 Map<String,MediaType> DefaultResourceConfig.getMediaTypeMappings()
           
 

Method parameters in com.sun.jersey.api.core with type arguments of type MediaType
 MediaType HttpRequestContext.getAcceptableMediaType(List<MediaType> mediaTypes)
          Deprecated.  
 

Uses of MediaType in com.sun.jersey.api.model
 

Methods in com.sun.jersey.api.model that return types with arguments of type MediaType
 List<MediaType> AbstractResourceMethod.getSupportedInputTypes()
           
 List<MediaType> AbstractResourceMethod.getSupportedOutputTypes()
           
 

Uses of MediaType in com.sun.jersey.atom.abdera
 

Methods in com.sun.jersey.atom.abdera with parameters of type MediaType
<T> T
ContentHelper.getContentEntity(org.apache.abdera.model.Entry entry, MediaType mediaType, Class<T> clazz)
          Deserialize the content element of the specified entry, and transform it back into an appropriate Java object.
 void ContentHelper.setContentEntity(org.apache.abdera.model.Entry entry, MediaType mediaType, Object entity)
          Serialize the specified entity as the content element of the specified entry.
 

Uses of MediaType in com.sun.jersey.atom.abdera.impl.provider.entity
 

Methods in com.sun.jersey.atom.abdera.impl.provider.entity with parameters of type MediaType
 long CategoriesProvider.getSize(org.apache.abdera.model.Categories feed, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 long EntryProvider.getSize(org.apache.abdera.model.Entry entry, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 long FeedProvider.getSize(org.apache.abdera.model.Feed feed, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 long ServiceProvider.getSize(org.apache.abdera.model.Service service, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FeedProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean CategoriesProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean EntryProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ServiceProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FeedProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean CategoriesProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean EntryProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ServiceProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 org.apache.abdera.model.Categories CategoriesProvider.readFrom(Class<org.apache.abdera.model.Categories> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
 org.apache.abdera.model.Entry EntryProvider.readFrom(Class<org.apache.abdera.model.Entry> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
 org.apache.abdera.model.Feed FeedProvider.readFrom(Class<org.apache.abdera.model.Feed> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
 org.apache.abdera.model.Service ServiceProvider.readFrom(Class<org.apache.abdera.model.Service> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
 void CategoriesProvider.writeTo(org.apache.abdera.model.Categories categories, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream stream)
           
 void EntryProvider.writeTo(org.apache.abdera.model.Entry entry, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream stream)
           
 void FeedProvider.writeTo(org.apache.abdera.model.Feed feed, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream stream)
           
 void ServiceProvider.writeTo(org.apache.abdera.model.Service service, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream stream)
           
 

Uses of MediaType in com.sun.jersey.atom.rome.impl.provider.entity
 

Methods in com.sun.jersey.atom.rome.impl.provider.entity with parameters of type MediaType
 boolean AtomFeedProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AtomEntryProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AtomFeedProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AtomEntryProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 com.sun.syndication.feed.atom.Entry AtomEntryProvider.readFrom(Class<com.sun.syndication.feed.atom.Entry> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 com.sun.syndication.feed.atom.Feed AtomFeedProvider.readFrom(Class<com.sun.syndication.feed.atom.Feed> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 void AtomEntryProvider.writeTo(com.sun.syndication.feed.atom.Entry t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void AtomFeedProvider.writeTo(com.sun.syndication.feed.atom.Feed t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 

Uses of MediaType in com.sun.jersey.core.header
 

Subclasses of MediaType in com.sun.jersey.core.header
 class AcceptableMediaType
          An acceptable media type.
 class QualitySourceMediaType
          An quality source media type.
 

Fields in com.sun.jersey.core.header declared as MediaType
static MediaType MediaTypes.FAST_INFOSET
           
static MediaType MediaTypes.GENERAL_MEDIA_TYPE
          The general media type corresponding to \*\/*.
protected  MediaType LinkHeader.LinkHeaderBuilder.type
           
static MediaType MediaTypes.WADL
           
 

Fields in com.sun.jersey.core.header 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 Comparator<List<? extends MediaType>> MediaTypes.MEDIA_TYPE_LIST_COMPARATOR
          Comparator for lists of media types.
 

Methods in com.sun.jersey.core.header that return MediaType
 MediaType LinkHeader.getType()
           
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.
 

Methods in com.sun.jersey.core.header that return types with arguments of type MediaType
static List<MediaType> MediaTypes.createMediaTypes(Consumes mime)
          Create a list of media type from the Consumes annotation.
static List<MediaType> MediaTypes.createMediaTypes(Produces mime)
          Create a list of media type from the Produces annotation.
static List<MediaType> MediaTypes.createMediaTypes(String[] mediaTypes)
          Create a list of media type from an array of media types.
static List<MediaType> MediaTypes.createQualitySourceMediaTypes(Produces mime)
          Create a list of quality source media type from the Produces annotation.
 

Methods in com.sun.jersey.core.header with parameters of type MediaType
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.
 T LinkHeader.LinkHeaderBuilder.type(MediaType type)
           
static boolean MediaTypes.typeEquals(MediaType m1, MediaType m2)
           
 

Method parameters in com.sun.jersey.core.header with type arguments of type MediaType
static boolean MediaTypes.intersects(List<? extends MediaType> ml1, List<? extends MediaType> ml2)
           
static boolean MediaTypes.intersects(List<? extends MediaType> ml1, List<? extends MediaType> ml2)
           
 

Constructors in com.sun.jersey.core.header with parameters of type MediaType
QualitySourceMediaType(MediaType mt)
           
 

Uses of MediaType in com.sun.jersey.core.header.reader
 

Methods in com.sun.jersey.core.header.reader that return types with arguments of type MediaType
static List<MediaType> HttpHeaderReader.readMediaTypes(List<MediaType> l, String header)
           
 

Method parameters in com.sun.jersey.core.header.reader with type arguments of type MediaType
static List<MediaType> HttpHeaderReader.readMediaTypes(List<MediaType> l, String header)
           
 

Uses of MediaType in com.sun.jersey.core.impl.provider.entity
 

Methods in com.sun.jersey.core.impl.provider.entity with parameters of type 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)
           
protected  XMLStreamReader XMLListElementProvider.getXMLStreamReader(Class<?> elementType, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 boolean RenderedImageProvider.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 FileProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ReaderProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean MimeMultipartProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ByteArrayProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean EntityHolderReader.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean StringProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean XMLRootObjectProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean DocumentProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean InputStreamProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean DataSourceProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FormMultivaluedMapProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FormProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  boolean XMLListElementProvider.General.isSupported(MediaType m)
           
protected  boolean XMLJAXBElementProvider.General.isSupported(MediaType m)
           
protected  boolean XMLRootObjectProvider.General.isSupported(MediaType m)
           
protected  boolean XMLRootElementProvider.General.isSupported(MediaType m)
           
 boolean RenderedImageProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean StreamingOutputProvider.isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
           
 boolean SourceProvider.SourceWriter.isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)
           
 boolean FileProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ReaderProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean MimeMultipartProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ByteArrayProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean StringProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean XMLRootObjectProvider.isWriteable(Class<?> arg0, Type arg1, Annotation[] arg2, MediaType mediaType)
           
 boolean DocumentProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean InputStreamProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean DataSourceProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FormMultivaluedMapProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean FormProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  JAXBElement<?> XMLJAXBElementProvider.readFrom(Class<?> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 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)
           
 javax.mail.internet.MimeMultipart MimeMultipartProvider.readFrom(Class<javax.mail.internet.MimeMultipart> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 MultivaluedMap<String,String> FormMultivaluedMapProvider.readFrom(Class<MultivaluedMap<String,String>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
protected  Object XMLRootElementProvider.readFrom(Class<Object> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 Object EntityHolderReader.readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 Object XMLRootObjectProvider.readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 Reader ReaderProvider.readFrom(Class<Reader> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 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)
           
 String StringProvider.readFrom(Class<String> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 T BaseFormProvider.readFrom(T map, MediaType mediaType, InputStream entityStream)
           
 void XMLListElementProvider.writeList(Class<?> elementType, Collection<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 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)
           
protected  void XMLJAXBElementProvider.writeTo(JAXBElement<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 void MimeMultipartProvider.writeTo(javax.mail.internet.MimeMultipart t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void FormMultivaluedMapProvider.writeTo(MultivaluedMap<String,String> t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void XMLRootObjectProvider.writeTo(Object arg0, Class<?> arg1, Type arg2, Annotation[] arg3, MediaType arg4, MultivaluedMap<String,Object> arg5, OutputStream arg6)
           
 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 o, 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)
           
 void StringProvider.writeTo(String t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void BaseFormProvider.writeTo(T t, MediaType mediaType, OutputStream entityStream)
           
 

Constructors in com.sun.jersey.core.impl.provider.entity with parameters of type MediaType
XMLJAXBElementProvider(Injectable<SAXParserFactory> spf, Providers ps, MediaType mt)
           
 

Uses of MediaType in com.sun.jersey.core.impl.provider.header
 

Methods in com.sun.jersey.core.impl.provider.header that return MediaType
 MediaType MediaTypeProvider.fromString(String header)
           
static MediaType MediaTypeProvider.valueOf(HttpHeaderReader reader)
           
 

Methods in com.sun.jersey.core.impl.provider.header with parameters of type MediaType
 String MediaTypeProvider.toString(MediaType header)
           
 

Uses of MediaType in com.sun.jersey.core.provider
 

Methods in com.sun.jersey.core.provider with parameters of type MediaType
static Charset AbstractMessageReaderWriterProvider.getCharset(MediaType m)
          Get the character set from a media type.
 long AbstractMessageReaderWriterProvider.getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
static String AbstractMessageReaderWriterProvider.readFromAsString(InputStream in, MediaType type)
          Read the bytes of an input stream and convert to a string.
static void AbstractMessageReaderWriterProvider.writeToAsString(String s, OutputStream out, MediaType type)
          Convert a string to bytes and write those bytes to an output stream.
 

Uses of MediaType in com.sun.jersey.core.provider.jaxb
 

Methods in com.sun.jersey.core.provider.jaxb with parameters of type MediaType
protected  Marshaller AbstractJAXBProvider.getMarshaller(Class type, MediaType mt)
           
protected  Unmarshaller AbstractJAXBProvider.getUnmarshaller(Class type, MediaType mt)
           
protected abstract  XMLStreamReader AbstractListElementProvider.getXMLStreamReader(Class<?> elementType, MediaType mediaType, Unmarshaller unmarshaller, InputStream entityStream)
          Get the XMLStreamReader for unmarshalling.
 boolean AbstractListElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AbstractJAXBElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AbstractRootElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  boolean AbstractJAXBProvider.isSupported(MediaType m)
           
 boolean AbstractListElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AbstractJAXBElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean AbstractRootElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected abstract  JAXBElement<?> AbstractJAXBElementProvider.readFrom(Class<?> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 JAXBElement<?> AbstractJAXBElementProvider.readFrom(Class<JAXBElement<?>> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
protected  Object AbstractRootElementProvider.readFrom(Class<Object> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
          Unmarshal a JAXB type.
 Object AbstractListElementProvider.readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 Object AbstractRootElementProvider.readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
abstract  void AbstractListElementProvider.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 AbstractJAXBElementProvider.writeTo(JAXBElement<?> t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
protected abstract  void AbstractJAXBElementProvider.writeTo(JAXBElement<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 void AbstractListElementProvider.writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void AbstractRootElementProvider.writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
protected  void AbstractRootElementProvider.writeTo(Object t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
          Marshal an instance of a JAXB type.
 

Constructors in com.sun.jersey.core.provider.jaxb with parameters of type MediaType
AbstractJAXBElementProvider(Providers ps, MediaType mt)
           
AbstractJAXBProvider(Providers ps, MediaType mt)
           
AbstractListElementProvider(Providers ps, MediaType mt)
           
AbstractRootElementProvider(Providers ps, MediaType mt)
           
 

Uses of MediaType in com.sun.jersey.core.spi.factory
 

Methods in com.sun.jersey.core.spi.factory that return MediaType
<T> MediaType
MessageBodyFactory.getMessageBodyWriterMediaType(Class<T> c, Type t, Annotation[] as, List<MediaType> acceptableMediaTypes)
           
 

Methods in com.sun.jersey.core.spi.factory that return types with arguments of type MediaType
<T> List<MediaType>
MessageBodyFactory.getMessageBodyWriterMediaTypes(Class<T> c, Type t, Annotation[] as)
           
 Map<MediaType,List<MessageBodyReader>> MessageBodyFactory.getReaders(MediaType mediaType)
           
 Map<MediaType,List<MessageBodyWriter>> MessageBodyFactory.getWriters(MediaType mediaType)
           
 

Methods in com.sun.jersey.core.spi.factory with parameters of type MediaType
<T> MessageBodyReader<T>
MessageBodyFactory.getMessageBodyReader(Class<T> c, Type t, Annotation[] as, MediaType mediaType)
           
<T> MessageBodyWriter<T>
MessageBodyFactory.getMessageBodyWriter(Class<T> c, Type t, Annotation[] as, MediaType mediaType)
           
 Map<MediaType,List<MessageBodyReader>> MessageBodyFactory.getReaders(MediaType mediaType)
           
 Map<MediaType,List<MessageBodyWriter>> MessageBodyFactory.getWriters(MediaType mediaType)
           
 Variant.VariantListBuilder VariantListBuilderImpl.mediaTypes(MediaType... mediaTypes)
           
<T> ContextResolver<T>
ContextResolverFactory.resolve(Type t, MediaType m)
           
 Response.ResponseBuilder ResponseBuilderImpl.type(MediaType type)
           
 

Method parameters in com.sun.jersey.core.spi.factory with type arguments of type MediaType
<T> MediaType
MessageBodyFactory.getMessageBodyWriterMediaType(Class<T> c, Type t, Annotation[] as, List<MediaType> acceptableMediaTypes)
           
 String MessageBodyFactory.readersToString(Map<MediaType,List<MessageBodyReader>> readers)
           
 String MessageBodyFactory.writersToString(Map<MediaType,List<MessageBodyWriter>> writers)
           
 

Uses of MediaType in com.sun.jersey.core.util
 

Methods in com.sun.jersey.core.util with parameters of type MediaType
static Charset ReaderWriter.getCharset(MediaType m)
          Get the character set from a media type.
static String ReaderWriter.readFromAsString(InputStream in, MediaType type)
          Read the bytes of an input stream and convert to a string.
static void ReaderWriter.writeToAsString(String s, OutputStream out, MediaType type)
          Convert a string to bytes and write those bytes to an output stream.
 

Uses of MediaType in com.sun.jersey.fastinfoset.impl.provider.entity
 

Methods in com.sun.jersey.fastinfoset.impl.provider.entity with parameters of type MediaType
protected  XMLStreamReader FastInfosetListElementProvider.getXMLStreamReader(Class<?> elementType, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
protected  JAXBElement<?> FastInfosetJAXBElementProvider.readFrom(Class<?> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
protected  Object FastInfosetRootElementProvider.readFrom(Class<Object> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 void FastInfosetListElementProvider.writeList(Class<?> elementType, Collection<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
protected  void FastInfosetJAXBElementProvider.writeTo(JAXBElement<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
protected  void FastInfosetRootElementProvider.writeTo(Object t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 

Uses of MediaType in com.sun.jersey.json.impl.provider.entity
 

Methods in com.sun.jersey.json.impl.provider.entity with parameters of type MediaType
 long JacksonProviderProxy.getSize(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  XMLStreamReader JSONListElementProvider.getXMLStreamReader(Class<?> elementType, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 boolean JSONWithPaddingProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONJAXBElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JacksonProviderProxy.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONRootElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONListElementProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONLowLevelProvider.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  boolean JSONJAXBElementProvider.General.isSupported(MediaType m)
           
protected  boolean JSONRootElementProvider.General.isSupported(MediaType m)
           
protected  boolean JSONListElementProvider.General.isSupported(MediaType m)
           
protected  boolean JSONLowLevelProvider.isSupported(MediaType m)
           
protected  boolean JSONArrayProvider.General.isSupported(MediaType m)
           
protected  boolean JSONObjectProvider.General.isSupported(MediaType m)
           
 boolean JSONWithPaddingProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONJAXBElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JacksonProviderProxy.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONRootElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONListElementProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean JSONLowLevelProvider.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
protected  JAXBElement<?> JSONJAXBElementProvider.readFrom(Class<?> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 org.codehaus.jettison.json.JSONArray JSONArrayProvider.readFrom(Class<org.codehaus.jettison.json.JSONArray> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 org.codehaus.jettison.json.JSONObject JSONObjectProvider.readFrom(Class<org.codehaus.jettison.json.JSONObject> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 JSONWithPadding JSONWithPaddingProvider.readFrom(Class<JSONWithPadding> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
protected  Object JSONRootElementProvider.readFrom(Class<Object> type, MediaType mediaType, Unmarshaller u, InputStream entityStream)
           
 Object JacksonProviderProxy.readFrom(Class<Object> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
           
 void JSONListElementProvider.writeList(Class<?> elementType, Collection<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
protected  void JSONJAXBElementProvider.writeTo(JAXBElement<?> t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 void JSONArrayProvider.writeTo(org.codehaus.jettison.json.JSONArray t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void JSONObjectProvider.writeTo(org.codehaus.jettison.json.JSONObject t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void JSONWithPaddingProvider.writeTo(JSONWithPadding t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 void JacksonProviderProxy.writeTo(Object t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
protected  void JSONRootElementProvider.writeTo(Object t, MediaType mediaType, Charset c, Marshaller m, OutputStream entityStream)
           
 

Uses of MediaType in com.sun.jersey.multipart
 

Fields in com.sun.jersey.multipart declared as MediaType
static MediaType MultiPartMediaTypes.MULTIPART_ALTERNATIVE_TYPE
          "multipart/alternative"
static MediaType MultiPartMediaTypes.MULTIPART_DIGEST_TYPE
          "multipart/digest"
static MediaType MultiPartMediaTypes.MULTIPART_MIXED_TYPE
          "multipart/mixed"
static MediaType MultiPartMediaTypes.MULTIPART_PARELLEL_TYPE
          "multipart/parallel"
 

Methods in com.sun.jersey.multipart that return MediaType
static MediaType Boundary.addBoundary(MediaType mediaType)
          Transform a media type and add a boundary parameter with a unique value if one is not already present.
static MediaType MultiPartMediaTypes.createAlternative()
           
static MediaType MultiPartMediaTypes.createDigest()
           
static MediaType MultiPartMediaTypes.createFormData()
           
static MediaType MultiPartMediaTypes.createMixed()
           
static MediaType MultiPartMediaTypes.createParallel()
           
 MediaType BodyPart.getMediaType()
          Return the MediaType for this BodyPart.
 

Methods in com.sun.jersey.multipart with parameters of type MediaType
static MediaType Boundary.addBoundary(MediaType mediaType)
          Transform a media type and add a boundary parameter with a unique value if one is not already present.
 MultiPart MultiPart.bodyPart(Object entity, MediaType mediaType)
          Builder pattern method to add a newly configured BodyPart to this MultiPart.
 FormDataMultiPart FormDataMultiPart.field(String name, Object entity, MediaType mediaType)
          Builder pattern method to add a named field with an arbitrary media type and entity, and return this instance.
 void MultiPart.setMediaType(MediaType mediaType)
          Set the MediaType for this MultiPart.
 void BodyPart.setMediaType(MediaType mediaType)
          Set the MediaType for this BodyPart.
 void FormDataMultiPart.setMediaType(MediaType mediaType)
          Disable changing the media type to anything other than multipart/form-data.
 void FormDataBodyPart.setValue(MediaType mediaType, Object value)
          Set the field media type and value for this body part.
 MultiPart MultiPart.type(MediaType type)
          Builder pattern method to return this MultiPart after additional configuration.
 BodyPart BodyPart.type(MediaType type)
          Builder pattern method to return this BodyPart after additional configuration.
 

Constructors in com.sun.jersey.multipart with parameters of type MediaType
BodyPart(MediaType mediaType)
          Instantiate a new BodyPart with the specified characteristics.
BodyPart(Object entity, MediaType mediaType)
          Instantiate a new BodyPart with the specified characteristics.
FormDataBodyPart(FormDataContentDisposition fdcd, Object entity, MediaType mediaType)
          Instantiate a named FormDataBodyPart with the specified characteristics.
FormDataBodyPart(MediaType mediaType)
          Instantiate an unnamed FormDataBodyPart with the specified characteristics.
FormDataBodyPart(Object entity, MediaType mediaType)
          Instantiate an unnamed FormDataBodyPart with the specified characteristics.
FormDataBodyPart(String name, Object entity, MediaType mediaType)
          Instantiate a named FormDataBodyPart with the specified characteristics.
MultiPart(MediaType mediaType)
          Instantiate a new MultiPart with the specified characteristics.
 

Uses of MediaType in com.sun.jersey.multipart.file
 

Methods in com.sun.jersey.multipart.file that return MediaType
 MediaType DefaultMediaTypePredictor.CommonMediaTypes.getMediaType()
          Get the media type.
 MediaType DefaultMediaTypePredictor.getMediaTypeFromFile(File file)
           
static MediaType DefaultMediaTypePredictor.CommonMediaTypes.getMediaTypeFromFile(File file)
          A utility method for predicting media type from a file name.
 MediaType MediaTypePredictor.getMediaTypeFromFile(File file)
          Get the media type from a file name.
 MediaType DefaultMediaTypePredictor.getMediaTypeFromFileName(String fileName)
           
static MediaType DefaultMediaTypePredictor.CommonMediaTypes.getMediaTypeFromFileName(String fileName)
          A utility method for predicting media type from a file name.
 MediaType MediaTypePredictor.getMediaTypeFromFileName(String fileName)
          Get the media type from a file name.
protected  MediaType FileDataBodyPart.predictMediaType()
          Predict the media type of the current fileEntity.
protected  MediaType FileDataBodyPart.predictMediaType(File file)
          Predict the media type of the provided File.
 

Methods in com.sun.jersey.multipart.file with parameters of type MediaType
 void FileDataBodyPart.setFileEntity(File fileEntity, MediaType mediaType)
          Sets the MediaType and fileEntity for this FormDataBodyPart.
 void FileDataBodyPart.setValue(MediaType mediaType, Object value)
          This operation is not supported from this implementation.
 

Constructors in com.sun.jersey.multipart.file with parameters of type MediaType
FileDataBodyPart(String name, File fileEntity, MediaType mediaType)
          Constructs the body part with all the attributes set for its proper function.
 

Uses of MediaType in com.sun.jersey.multipart.impl
 

Methods in com.sun.jersey.multipart.impl with parameters of type MediaType
 long MultiPartWriter.getSize(MultiPart entity, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean MultiPartReaderClientSide.isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean MultiPartWriter.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 MultiPart MultiPartReaderClientSide.readFrom(Class<MultiPart> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
          Read the entire list of body parts from the Input stream, using the appropriate provider implementation to deserialize each body part's entity.
protected  MultiPart MultiPartReaderServerSide.readMultiPart(Class<MultiPart> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
protected  MultiPart MultiPartReaderClientSide.readMultiPart(Class<MultiPart> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, InputStream stream)
           
 void MultiPartWriter.writeTo(MultiPart entity, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, OutputStream stream)
          Write the entire list of body parts to the output stream, using the appropriate provider implementation to serialize each body part's entity.
 

Uses of MediaType in com.sun.jersey.server.impl.model
 

Methods in com.sun.jersey.server.impl.model that return MediaType
static MediaType HttpHelper.getContentType(HttpRequestContext request)
          Get the content type from the "Content-Type" of an HTTP request.
static MediaType HttpHelper.getContentType(Object contentType)
          Get the content type from an Object.
static MediaType HttpHelper.getContentType(String contentTypeString)
          Get the content type from a String.
 

Methods in com.sun.jersey.server.impl.model with parameters of type MediaType
static boolean HttpHelper.produces(MediaType contentType, List<MediaType> accept)
          Ascertain if an entity of a specific Media type is capable of being produced from a list of Media type.
 

Method parameters in com.sun.jersey.server.impl.model with type arguments of type MediaType
static boolean HttpHelper.produces(MediaType contentType, List<MediaType> accept)
          Ascertain if an entity of a specific Media type is capable of being produced from a list of Media type.
 

Uses of MediaType in com.sun.jersey.server.impl.model.method
 

Methods in com.sun.jersey.server.impl.model.method that return types with arguments of type MediaType
 List<? extends MediaType> ResourceMethod.getConsumes()
           
 List<? extends MediaType> ResourceMethod.getProduces()
           
 

Methods in com.sun.jersey.server.impl.model.method with parameters of type MediaType
 boolean ResourceMethod.consumes(MediaType contentType)
          Ascertain if the method is capable of consuming an entity of a certain media type.
 

Constructor parameters in com.sun.jersey.server.impl.model.method with type arguments of type MediaType
ResourceMethod(String httpMethod, UriTemplate template, List<? extends MediaType> consumeMime, List<? extends MediaType> produceMime, boolean isProducesDeclared, RequestDispatcher dispatcher)
           
ResourceMethod(String httpMethod, UriTemplate template, List<? extends MediaType> consumeMime, List<? extends MediaType> produceMime, boolean isProducesDeclared, RequestDispatcher dispatcher)
           
ResourceMethod(String httpMethod, UriTemplate template, List<? extends MediaType> consumeMime, List<? extends MediaType> produceMime, boolean isProducesDeclared, RequestDispatcher dispatcher, List<ContainerRequestFilter> requestFilters, List<ContainerResponseFilter> responseFilters)
           
ResourceMethod(String httpMethod, UriTemplate template, List<? extends MediaType> consumeMime, List<? extends MediaType> produceMime, boolean isProducesDeclared, RequestDispatcher dispatcher, List<ContainerRequestFilter> requestFilters, List<ContainerResponseFilter> responseFilters)
           
 

Uses of MediaType in com.sun.jersey.server.impl.template
 

Methods in com.sun.jersey.server.impl.template with parameters of type MediaType
 long ViewableMessageBodyWriter.getSize(Viewable t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 boolean ViewableMessageBodyWriter.isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
           
 void ViewableMessageBodyWriter.writeTo(Viewable v, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
           
 

Uses of MediaType in com.sun.jersey.server.impl.uri.rules
 

Methods in com.sun.jersey.server.impl.uri.rules that return types with arguments of type MediaType
static List<MediaType> HttpMethodRule.getSpecificAcceptableMediaTypes(List<MediaType> acceptableMediaType, List<? extends MediaType> priorityMediaTypes)
          Get a list of media types that are acceptable for the response.
 

Method parameters in com.sun.jersey.server.impl.uri.rules with type arguments of type MediaType
static List<MediaType> HttpMethodRule.getSpecificAcceptableMediaTypes(List<MediaType> acceptableMediaType, List<? extends MediaType> priorityMediaTypes)
          Get a list of media types that are acceptable for the response.
static List<MediaType> HttpMethodRule.getSpecificAcceptableMediaTypes(List<MediaType> acceptableMediaType, List<? extends MediaType> priorityMediaTypes)
          Get a list of media types that are acceptable for the response.
 

Uses of MediaType in com.sun.jersey.server.wadl
 

Methods in com.sun.jersey.server.wadl with parameters of type MediaType
 RepresentationType WadlGenerator.createRequestRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
           
 RepresentationType WadlGeneratorImpl.createRequestRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
           
 RepresentationType WadlGeneratorImpl.createResponseRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
           
 

Uses of MediaType in com.sun.jersey.server.wadl.generators
 

Methods in com.sun.jersey.server.wadl.generators with parameters of type MediaType
 RepresentationType WadlGeneratorGrammarsSupport.createRequestRepresentation(AbstractResource ar, AbstractResourceMethod arm, MediaType mt)
           
 RepresentationType WadlGeneratorApplicationDoc.createRequestRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
           
 

Uses of MediaType in com.sun.jersey.server.wadl.generators.resourcedoc
 

Methods in com.sun.jersey.server.wadl.generators.resourcedoc with parameters of type MediaType
 RepresentationType WadlGeneratorResourceDocSupport.createRequestRepresentation(AbstractResource r, AbstractResourceMethod m, MediaType mediaType)
           
 

Uses of MediaType in com.sun.jersey.spi
 

Methods in com.sun.jersey.spi that return MediaType
<T> MediaType
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<T> 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 com.sun.jersey.spi that return types with arguments of type MediaType
<T> List<MediaType>
MessageBodyWorkers.getMessageBodyWriterMediaTypes(Class<T> type, Type genericType, Annotation[] annotations)
          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 com.sun.jersey.spi with parameters of type MediaType
<T> MessageBodyReader<T>
MessageBodyWorkers.getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)
          Get a message body reader that matches a set of criteria.
<T> MessageBodyWriter<T>
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.
 

Method parameters in com.sun.jersey.spi with type arguments of type MediaType
<T> MediaType
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<T> 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 com.sun.jersey.spi.container
 

Methods in com.sun.jersey.spi.container that return MediaType
 MediaType ContainerRequest.getAcceptableMediaType(List<MediaType> mediaTypes)
           
 MediaType AdaptingContainerRequest.getAcceptableMediaType(List<MediaType> mediaTypes)
           
 MediaType ContainerResponse.getMediaType()
           
 MediaType ContainerRequest.getMediaType()
           
 MediaType AdaptingContainerRequest.getMediaType()
           
 MediaType AdaptingContainerResponse.getMediaType()
           
 

Methods in com.sun.jersey.spi.container that return types with arguments of type MediaType
 List<MediaType> ContainerRequest.getAcceptableMediaTypes()
           
 List<MediaType> AdaptingContainerRequest.getAcceptableMediaTypes()
           
 List<MediaType> ContainerRequest.getAcceptableMediaTypes(List<QualitySourceMediaType> priorityMediaTypes)
           
 List<MediaType> AdaptingContainerRequest.getAcceptableMediaTypes(List<QualitySourceMediaType> priorityMediaTypes)
           
 

Method parameters in com.sun.jersey.spi.container with type arguments of type MediaType
 MediaType ContainerRequest.getAcceptableMediaType(List<MediaType> mediaTypes)
           
 MediaType AdaptingContainerRequest.getAcceptableMediaType(List<MediaType> mediaTypes)
           
 

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.MULTIPART_FORM_DATA_TYPE
          "multipart/form-data"
static MediaType MediaType.TEXT_HTML_TYPE
          "text/html"
static MediaType MediaType.TEXT_PLAIN_TYPE
          "text/plain"
static MediaType MediaType.TEXT_XML_TYPE
          "text/xml"
static MediaType MediaType.WILDCARD_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
static MediaType MediaType.valueOf(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
 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 response media type on the ResponseBuilder.
 

Constructors in javax.ws.rs.core with parameters of type MediaType
Variant(MediaType mediaType, Locale language, 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
<T> ContextResolver<T>
Providers.getContextResolver(Class<T> contextType, MediaType mediaType)
          Get a context resolver for a particular type of context and media type.
<T> MessageBodyReader<T>
Providers.getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)
          Get a message body reader that matches a set of criteria.
<T> MessageBodyWriter<T>
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)
          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 MessageBodyWriter.writeTo(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
          Write a type to an HTTP response.
 



Copyright © 2013 Oracle Corporation. All Rights Reserved.