Uses of Class
jakarta.ws.rs.core.MediaType
-
Packages that use MediaType Package Description jakarta.ws.rs.client The JAX-RS client APIjakarta.ws.rs.container Container-specific JAX-RS API.jakarta.ws.rs.core Low-level interfaces and annotations used to create RESTful service resources.jakarta.ws.rs.ext APIs that provide extensions to the types supported by the JAX-RS API.jakarta.ws.rs.sse Server-Sent Events related API.org.glassfish.jersey.client Jersey client-side classes.org.glassfish.jersey.client.spi Jersey client SPI classes/interfaces.org.glassfish.jersey.internal Common Jersey internal API 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 Jersey server-side internal model related and routing helper classes.org.glassfish.jersey.server.wadl Jersey server-side WADL support public classes and interfaces.org.glassfish.jersey.server.wadl.internal Jersey server-side WADL internal classes.org.glassfish.jersey.spi Common Jersey service provider contract (SPI) classes. -
-
Uses of MediaType in jakarta.ws.rs.client
Methods in jakarta.ws.rs.client that return MediaType Modifier and Type Method Description MediaTypeClientRequestContext. getMediaType()Get the media type of the entity.MediaTypeClientResponseContext. getMediaType()Get the media type of the entity.MediaTypeEntity. getMediaType()Get entity media type.Methods in jakarta.ws.rs.client that return types with arguments of type MediaType Modifier and Type Method Description List<MediaType>ClientRequestContext. getAcceptableMediaTypes()Get a list of media types that are acceptable for the response.Methods in jakarta.ws.rs.client with parameters of type MediaType Modifier and Type Method Description Invocation.BuilderInvocation.Builder. accept(MediaType... mediaTypes)Add the accepted response media types.static <T> Entity<T>Entity. entity(T entity, MediaType mediaType)Create an entity using a supplied content media type.static <T> Entity<T>Entity. entity(T entity, MediaType mediaType, Annotation[] annotations)Create an entity using a supplied content media type.Invocation.BuilderWebTarget. request(MediaType... acceptedResponseTypes)Start building a request to the targeted web resource and define the accepted response media types.voidClientRequestContext. setEntity(Object entity, Annotation[] annotations, MediaType mediaType)Set a new message entity, including the attached annotations and the media type. -
Uses of MediaType in jakarta.ws.rs.container
Methods in jakarta.ws.rs.container that return MediaType Modifier and Type Method Description MediaTypeContainerRequestContext. getMediaType()Get the media type of the entity.MediaTypeContainerResponseContext. getMediaType()Get the media type of the entity.Methods in jakarta.ws.rs.container that return types with arguments of type MediaType Modifier and Type Method Description List<MediaType>ContainerRequestContext. getAcceptableMediaTypes()Get a list of media types that are acceptable for the response.Methods in jakarta.ws.rs.container with parameters of type MediaType Modifier and Type Method Description voidContainerResponseContext. setEntity(Object entity, Annotation[] annotations, MediaType mediaType)Set a new message entity, including the attached annotations and the media type. -
Uses of MediaType in jakarta.ws.rs.core
Methods in jakarta.ws.rs.core that return MediaType Modifier and Type Method Description MediaTypeEntityPart. getMediaType()Returns the content type of this part, and equivalent to callingMediaType.valueOf(part.getHeaders().getFirst(HttpHeaders.CONTENT_TYPE)).MediaTypeHttpHeaders. getMediaType()Get the media type of the request entity.abstract MediaTypeResponse. getMediaType()Get the media type of the message entity.MediaTypeVariant. getMediaType()Get the media type of the variant.static MediaTypeMediaType. valueOf(String type)Creates a new instance ofMediaTypeby parsing the supplied string.MediaTypeMediaType. withCharset(String charset)Create a newMediaTypeinstance with the same type, subtype and parameters copied from the original instance and the supplied "charset" parameter.Methods in jakarta.ws.rs.core that return types with arguments of type MediaType Modifier and Type Method Description List<MediaType>HttpHeaders. getAcceptableMediaTypes()Get a list of media types that are acceptable for the response.Methods in jakarta.ws.rs.core with parameters of type MediaType Modifier and Type Method Description booleanMediaType. isCompatible(MediaType other)Check if this media type is compatible with another media type.EntityPart.BuilderEntityPart.Builder. mediaType(MediaType mediaType)Sets the media type for the EntityPart.static Variant.VariantListBuilderVariant. mediaTypes(MediaType... mediaTypes)Create aVariant.VariantListBuilderinitialized with a set of supported media types.abstract Variant.VariantListBuilderVariant.VariantListBuilder. mediaTypes(MediaType... mediaTypes)Set the media type(s) for this variant.static Response.ResponseBuilderResponse. ok(Object entity, MediaType type)Create a new ResponseBuilder that contains a representation.abstract Response.ResponseBuilderResponse.ResponseBuilder. type(MediaType type)Set the message entity media type.Constructors in jakarta.ws.rs.core with parameters of type MediaType Constructor Description 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.Variant(MediaType mediaType, Locale language, String encoding)Create a new instance of Variant. -
Uses of MediaType in jakarta.ws.rs.ext
Methods in jakarta.ws.rs.ext that return MediaType Modifier and Type Method Description MediaTypeInterceptorContext. getMediaType()Get media type of HTTP entity.Methods in jakarta.ws.rs.ext with parameters of type MediaType Modifier and Type Method Description <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.default longMessageBodyWriter. getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Originally, the method has been called beforewriteToto ascertain the length in bytes of the serialized form oft.booleanMessageBodyReader. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Ascertain if the MessageBodyReader can produce an instance of a particular type.booleanMessageBodyWriter. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Ascertain if the MessageBodyWriter supports a particular type.TMessageBodyReader. readFrom(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)Read a type from theInputStream.voidInterceptorContext. setMediaType(MediaType mediaType)Update media type of HTTP entity.voidMessageBodyWriter. 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 jakarta.ws.rs.sse
Methods in jakarta.ws.rs.sse that return MediaType Modifier and Type Method Description MediaTypeOutboundSseEvent. getMediaType()Getmedia typeof the event data.Methods in jakarta.ws.rs.sse with parameters of type MediaType Modifier and Type Method Description OutboundSseEvent.BuilderOutboundSseEvent.Builder. mediaType(MediaType mediaType)Set themedia typeof the event data.<T> TInboundSseEvent. readData(GenericType<T> type, MediaType mediaType)Read event data as a given generic type.<T> TInboundSseEvent. readData(Class<T> messageType, MediaType mediaType)Read event data as a given Java type. -
Uses of MediaType in org.glassfish.jersey.client
Methods in org.glassfish.jersey.client that return MediaType Modifier and Type Method Description MediaTypeChunkedInput. getChunkType()Get chunk data media type.Methods in org.glassfish.jersey.client with parameters of type MediaType Modifier and Type Method Description voidClientRequest. accept(MediaType... types)Add new accepted types to the message headers.JerseyInvocation.BuilderJerseyInvocation.Builder. accept(MediaType... mediaTypes)JerseyInvocation.BuilderJerseyWebTarget. request(MediaType... acceptedResponseTypes)voidChunkedInput. setChunkType(MediaType mediaType)Set custom chunk data media type.voidClientRequest. type(MediaType type)Set message content type.Constructors in org.glassfish.jersey.client with parameters of type MediaType Constructor Description ChunkedInput(Type chunkType, InputStream inputStream, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> headers, MessageBodyWorkers messageBodyWorkers, PropertiesDelegate propertiesDelegate)Package-private constructor used by theChunkedInputReader. -
Uses of MediaType in org.glassfish.jersey.client.spi
Methods in org.glassfish.jersey.client.spi with parameters of type MediaType Modifier and Type Method Description InvocationBuilderListener.InvocationBuilderContextInvocationBuilderListener.InvocationBuilderContext. accept(MediaType... mediaTypes)Add the accepted response media types. -
Uses of MediaType in org.glassfish.jersey.internal
Methods in org.glassfish.jersey.internal with parameters of type MediaType Modifier and Type Method Description <T> ContextResolver<T>JaxrsProviders. getContextResolver(Class<T> contextType, MediaType mediaType)<T> MessageBodyReader<T>JaxrsProviders. getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)<T> MessageBodyWriter<T>JaxrsProviders. getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType)<T> ContextResolver<T>ContextResolverFactory. resolve(Type t, MediaType m) -
Uses of MediaType in org.glassfish.jersey.message
Methods in org.glassfish.jersey.message that return MediaType Modifier and Type Method Description MediaTypeMessageBodyWorkers. 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 Modifier and Type Method Description List<MediaType>AbstractEntityProviderModel. declaredTypes()Get types declared as supported (via@Producesor@Consumes) on the entity provider.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 Modifier and Type Method Description static CharsetMessageUtils. getCharset(MediaType media)Get the character set from a media type.<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> MessageBodyReader<T>MessageBodyWorkers. getMessageBodyReader(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType, PropertiesDelegate propertiesDelegate)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.<T> MessageBodyWriter<T>MessageBodyWorkers. getMessageBodyWriter(Class<T> type, Type genericType, Annotation[] annotations, MediaType mediaType, PropertiesDelegate propertiesDelegate)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.booleanReaderModel. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Safely invokesisReadablemethod on the underlying provider.booleanWriterModel. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Safely invokesisWriteablemethod on the underlying provider.ObjectMessageBodyWorkers. 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 theentityStreamusing interceptors.OutputStreamMessageBodyWorkers. 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 theentityStreamusing interceptors.Method parameters in org.glassfish.jersey.message with type arguments of type MediaType Modifier and Type Method Description MediaTypeMessageBodyWorkers. 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.StringMessageBodyWorkers. readersToString(Map<MediaType,List<MessageBodyReader>> readers)Convert a map media type to list of message body readers to a string.StringMessageBodyWorkers. writersToString(Map<MediaType,List<MessageBodyWriter>> writers)Convert a map media type to list of message body writers to a string.Constructor parameters in org.glassfish.jersey.message with type arguments of type MediaType Constructor Description ReaderModel(MessageBodyReader provider, List<MediaType> types, Boolean custom)Create new reader model instance.WriterModel(MessageBodyWriter provider, List<MediaType> types, Boolean custom)Create new writer model instance. -
Uses of MediaType in org.glassfish.jersey.message.internal
Subclasses of MediaType in org.glassfish.jersey.message.internal Modifier and Type Class Description classAcceptableMediaTypeAn acceptable media type.classQualitySourceMediaTypeA quality source media type.Fields in org.glassfish.jersey.message.internal declared as MediaType Modifier and Type Field Description static MediaTypeMediaTypes. WADL_TYPEWADL Media type.Fields in org.glassfish.jersey.message.internal with type parameters of type MediaType Modifier and Type Field Description static org.glassfish.jersey.internal.util.collection.KeyComparator<MediaType>MessageBodyFactory. MEDIA_TYPE_KEY_COMPARATORMedia type comparator.static Comparator<List<? extends MediaType>>MediaTypes. MEDIA_TYPE_LIST_COMPARATORComparator for lists of media types.static Comparator<MediaType>MediaTypes. PARTIAL_ORDER_COMPARATORA comparator for media types, that implements the "partial order" defined in the resource matching algorithm section of the JAX-RS specification, except that this comparator is "inverted" so that it allows for natural sorting in Java collections, where "lower" values are put to the front of a collection.static List<MediaType>MediaTypes. WILDCARD_QS_TYPE_SINGLETON_LISTA singleton list containing the wildcard media type.static List<MediaType>MediaTypes. WILDCARD_TYPE_SINGLETON_LISTA singleton list containing the wildcard media type.Methods in org.glassfish.jersey.message.internal that return MediaType Modifier and Type Method Description MediaTypeMediaTypeProvider. fromString(String header)MediaTypeInboundMessageContext. getMediaType()Get the media type of the entity.MediaTypeOutboundJaxrsResponse. getMediaType()MediaTypeOutboundMessageContext. getMediaType()Get the media type of the entity.MediaTypeMessageBodyFactory. getMessageBodyWriterMediaType(Class<?> c, Type t, Annotation[] as, List<MediaType> acceptableMediaTypes)static MediaTypeMediaTypes. getTypeWildCart(MediaType mediaType)Returns MediaType with wildcard in subtype.static MediaTypeMediaTypes. mostSpecific(MediaType m1, MediaType m2)Get the most specific media type from a pair of media types.static MediaTypeMediaTypes. stripQualityParams(MediaType mediaType)Strips any quality parameters, i.e.static MediaTypeMediaTypeProvider. valueOf(HttpHeaderReader reader)Create a newMediaTypeinstance from a header reader.Methods in org.glassfish.jersey.message.internal that return types with arguments of type MediaType Modifier and Type Method Description static List<MediaType>MediaTypes. createFrom(Consumes annotation)Create an unmodifiable list of media types from the values declared in theConsumesannotation.static List<MediaType>MediaTypes. createFrom(Produces annotation)Create an unmodifiable list of media types from the values declared in theProducesannotation.static List<MediaType>MediaTypes. createFrom(String[] mediaTypes)Create an unmodifiable 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)TODO javadoc.Methods in org.glassfish.jersey.message.internal with parameters of type MediaType Modifier and Type Method Description static CharsetAbstractMessageReaderWriterProvider. getCharset(MediaType m)Get the character set from a media type.static CharsetReaderWriter. getCharset(MediaType m)Get the character set from a media type.<T> MessageBodyReader<T>MessageBodyFactory. getMessageBodyReader(Class<T> c, Type t, Annotation[] as, MediaType mediaType)<T> MessageBodyReader<T>MessageBodyFactory. getMessageBodyReader(Class<T> c, Type t, Annotation[] as, MediaType mediaType, PropertiesDelegate propertiesDelegate)<T> MessageBodyWriter<T>MessageBodyFactory. getMessageBodyWriter(Class<T> c, Type t, Annotation[] as, MediaType mediaType)<T> MessageBodyWriter<T>MessageBodyFactory. getMessageBodyWriter(Class<T> c, Type t, Annotation[] as, MediaType mediaType, PropertiesDelegate propertiesDelegate)static intMediaTypes. getQuality(MediaType mt)Reads quality factor from given media type.static intQualitySourceMediaType. getQualitySource(MediaType mediaType)Extract quality source information from the suppliedMediaTypevalue.Map<MediaType,List<MessageBodyReader>>MessageBodyFactory. getReaders(MediaType mediaType)longAbstractMessageReaderWriterProvider. getSize(T t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)longByteArrayProvider. getSize(byte[] t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)longFileProvider. getSize(File t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)longInputStreamProvider. getSize(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)longSourceProvider.SourceWriter. getSize(Source o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)longStreamingOutputProvider. getSize(StreamingOutput o, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)static MediaTypeMediaTypes. getTypeWildCart(MediaType mediaType)Returns MediaType with wildcard in subtype.Map<MediaType,List<MessageBodyWriter>>MessageBodyFactory. getWriters(MediaType mediaType)booleanByteArrayProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanDataSourceProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFileProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFormMultivaluedMapProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFormProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanInputStreamProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)static booleanMessageBodyFactory. isReadable(MessageBodyReader<?> provider, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Safely invokesisReadablemethod on the supplied provider.booleanReaderProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanRenderedImageProvider. isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanSourceProvider.DomSourceReader. isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)booleanSourceProvider.SaxSourceReader. isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)booleanSourceProvider.StreamSourceReader. isReadable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)static booleanMediaTypes. isWildcard(MediaType mediaType)Check if the given media type is a wildcard type.booleanByteArrayProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanDataSourceProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFileProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFormMultivaluedMapProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanFormProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanInputStreamProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)static booleanMessageBodyFactory. isWriteable(MessageBodyWriter<?> provider, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)Safely invokesisWriteablemethod on the supplied provider.booleanReaderProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanRenderedImageProvider. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanSourceProvider.SourceWriter. isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)booleanStreamingOutputProvider. isWriteable(Class<?> t, Type gt, Annotation[] as, MediaType mediaType)VariantListBuilderVariantListBuilder. mediaTypes(MediaType... mediaTypes)static MediaTypeMediaTypes. mostSpecific(MediaType m1, MediaType m2)Get the most specific media type from a pair of media types.<M extends MultivaluedMap<String,String>>
MAbstractFormProvider. readFrom(M map, MediaType mediaType, boolean decode, InputStream entityStream)byte[]ByteArrayProvider. readFrom(Class<byte[]> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)jakarta.activation.DataSourceDataSourceProvider. readFrom(Class<jakarta.activation.DataSource> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)FileFileProvider. readFrom(Class<File> 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)FormFormProvider. readFrom(Class<Form> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)InputStreamInputStreamProvider. readFrom(Class<InputStream> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)ObjectMessageBodyFactory. readFrom(Class<?> rawType, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, PropertiesDelegate propertiesDelegate, InputStream entityStream, Iterable<ReaderInterceptor> readerInterceptors, boolean translateNce)ReaderReaderProvider. readFrom(Class<Reader> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream inputStream)RenderedImageRenderedImageProvider. readFrom(Class<RenderedImage> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)DOMSourceSourceProvider.DomSourceReader. readFrom(Class<DOMSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)SAXSourceSourceProvider.SaxSourceReader. readFrom(Class<SAXSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)StreamSourceSourceProvider.StreamSourceReader. readFrom(Class<StreamSource> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)static StringAbstractMessageReaderWriterProvider. readFromAsString(InputStream in, MediaType type)Read the bytes of an input stream and convert to a string.static StringReaderWriter. readFromAsString(InputStream in, MediaType type)Read the bytes of an input stream and convert to a string.voidOutboundMessageContext. setEntity(Object entity, Annotation[] annotations, MediaType mediaType)Set a new message message entity.voidOutboundMessageContext. setMediaType(MediaType mediaType)Set the message content media type.static MediaTypeMediaTypes. stripQualityParams(MediaType mediaType)Strips any quality parameters, i.e.StringMediaTypeProvider. toString(MediaType header)Response.ResponseBuilderOutboundJaxrsResponse.Builder. type(MediaType type)static booleanMediaTypes. typeEqual(MediaType m1, MediaType m2)static AcceptableMediaTypeAcceptableMediaType. valueOf(MediaType mediaType)Create new acceptable media type instance from the suppliedmedia type.<M extends MultivaluedMap<String,String>>
voidAbstractFormProvider. writeTo(M t, MediaType mediaType, OutputStream entityStream)voidByteArrayProvider. writeTo(byte[] t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidDataSourceProvider. writeTo(jakarta.activation.DataSource t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidFileProvider. writeTo(File t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidFormMultivaluedMapProvider. writeTo(MultivaluedMap<String,String> t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidFormProvider. writeTo(Form t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidInputStreamProvider. writeTo(InputStream t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)OutputStreamMessageBodyFactory. writeTo(Object t, Class<?> rawType, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, PropertiesDelegate propertiesDelegate, OutputStream entityStream, Iterable<WriterInterceptor> writerInterceptors)voidReaderProvider. writeTo(Reader t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidRenderedImageProvider. writeTo(RenderedImage t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidSourceProvider.SourceWriter. writeTo(Source source, Class<?> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)voidStreamingOutputProvider. writeTo(StreamingOutput o, Class<?> t, Type gt, Annotation[] as, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entity)static voidAbstractMessageReaderWriterProvider. writeToAsString(String s, OutputStream out, MediaType type)Convert a string to bytes and write those bytes to an output stream.static voidReaderWriter. 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 Modifier and Type Method Description static StringMediaTypes. convertToString(Iterable<MediaType> mediaTypes)Convert media types intoString.MediaTypeMessageBodyFactory. getMessageBodyWriterMediaType(Class<?> c, Type t, Annotation[] as, List<MediaType> acceptableMediaTypes)static booleanMediaTypes. intersect(List<? extends MediaType> ml1, List<? extends MediaType> ml2)Determine if the two list of media types share a commontype-equalsub-list.StringMessageBodyFactory. readersToString(Map<MediaType,List<MessageBodyReader>> readers)static List<MediaType>HttpHeaderReader. readMediaTypes(List<MediaType> l, String header)TODO javadoc.StringMessageBodyFactory. writersToString(Map<MediaType,List<MessageBodyWriter>> writers)Constructors in org.glassfish.jersey.message.internal with parameters of type MediaType Constructor Description WriterInterceptorExecutor(Object entity, Class<?> rawType, Type type, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> headers, PropertiesDelegate propertiesDelegate, OutputStream entityStream, MessageBodyWorkers workers, Iterable<WriterInterceptor> writerInterceptors, org.glassfish.jersey.internal.inject.InjectionManager injectionManager)Constructs a new executor to write given type to providedentityStream. -
Uses of MediaType in org.glassfish.jersey.server
Methods in org.glassfish.jersey.server that return MediaType Modifier and Type Method Description MediaTypeContainerResponse. getMediaType()Methods in org.glassfish.jersey.server that return types with arguments of type MediaType Modifier and Type Method Description List<MediaType>ContainerRequest. getAcceptableMediaTypes()Methods in org.glassfish.jersey.server with parameters of type MediaType Modifier and Type Method Description longChunkedResponseWriter. getSize(ChunkedOutput<?> chunkedOutput, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)booleanChunkedResponseWriter. isWriteable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)voidContainerResponse. setEntity(Object entity, Annotation[] annotations, MediaType mediaType)voidContainerResponse. setMediaType(MediaType mediaType)Set the message content media type.voidChunkedResponseWriter. 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 Modifier and Type Field Description protected Map<String,MediaType>UriConnegFilter. mediaTypeMappingsConstructor parameters in org.glassfish.jersey.server.filter with type arguments of type MediaType Constructor Description 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 Modifier and Type Method Description List<MediaType>Consuming. getConsumedTypes()Get the consumed media types supported by the component.List<MediaType>ResourceMethod. getConsumedTypes()List<MediaType>Producing. getProducedTypes()Get the produced media types supported by the component.List<MediaType>ResourceMethod. getProducedTypes()Methods in org.glassfish.jersey.server.model with parameters of type MediaType Modifier and Type Method Description ResourceMethod.BuilderResourceMethod.Builder. consumes(MediaType... types)Add consumed media types supported by the component.ResourceMethod.BuilderResourceMethod.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 Modifier and Type Method Description ResourceMethod.BuilderResourceMethod.Builder. consumes(Collection<MediaType> types)Add consumed media types supported by the component.ResourceMethod.BuilderResourceMethod.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 Constructor Description Method(String httpMethod, MediaType consumes, MediaType produces, Class<? extends Inflector<ContainerRequestContext,Response>> inflector)Create new method instance.Method(String httpMethod, MediaType consumes, MediaType produces, Inflector<ContainerRequestContext,Response> inflector)Create new method instance.Method(String path, String httpMethod, MediaType consumes, MediaType produces, Class<? extends Inflector<ContainerRequestContext,Response>> inflector)Create new method instance.Method(String path, String httpMethod, MediaType consumes, MediaType produces, Inflector<ContainerRequestContext,Response> inflector)Create new method instance.Constructor parameters in org.glassfish.jersey.server.model.internal with type arguments of type MediaType Constructor Description Method(String path, String httpMethod, List<MediaType> consumes, List<MediaType> produces, Class<? extends Inflector<ContainerRequestContext,Response>> inflectorClass)Create new method instance.Method(String path, String httpMethod, List<MediaType> consumes, List<MediaType> produces, Inflector<ContainerRequestContext,Response> inflector)Create new method instance.Method(String httpMethod, List<MediaType> consumes, List<MediaType> produces, Class<? extends Inflector<ContainerRequestContext,Response>> inflector)Create new method instance.Method(String httpMethod, List<MediaType> consumes, List<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 Modifier and Type Method Description RepresentationWadlGenerator. 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 Modifier and Type Method Description MediaTypeApplicationDescription.ExternalGrammar. getType()Methods in org.glassfish.jersey.server.wadl.internal with parameters of type MediaType Modifier and Type Method Description RepresentationWadlGeneratorImpl. createRequestRepresentation(Resource r, ResourceMethod m, MediaType mediaType)RepresentationWadlGeneratorImpl. createResponseRepresentation(Resource r, ResourceMethod m, MediaType mediaType)Constructors in org.glassfish.jersey.server.wadl.internal with parameters of type MediaType Constructor Description ExternalGrammar(MediaType type, byte[] content) -
Uses of MediaType in org.glassfish.jersey.spi
Methods in org.glassfish.jersey.spi with parameters of type MediaType Modifier and Type Method Description <T> ContextResolver<T>ContextResolvers. resolve(Type type, MediaType mediaType)GetContextResolver<T>instance for a given type and media type.
-