| Package | Description |
|---|---|
| jakarta.ws.rs.client |
The JAX-RS client API
|
| jakarta.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.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ClientResponseContext.getMediaType()
Get the media type of the entity.
|
MediaType |
Entity.getMediaType()
Get entity media type.
|
MediaType |
ClientRequestContext.getMediaType()
Get the media type of the entity.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ClientRequestContext.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response.
|
| Modifier and Type | Method and Description |
|---|---|
Invocation.Builder |
Invocation.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.Builder |
WebTarget.request(MediaType... acceptedResponseTypes)
Start building a request to the targeted web resource and define the accepted response media types.
|
void |
ClientRequestContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message entity, including the attached annotations and the media type.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ContainerRequestContext.getMediaType()
Get the media type of the entity.
|
MediaType |
ContainerResponseContext.getMediaType()
Get the media type of the entity.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ContainerRequestContext.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ContainerResponseContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message entity, including the attached annotations and the media type.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
HttpHeaders.getMediaType()
Get the media type of the request entity.
|
abstract MediaType |
Response.getMediaType()
Get the media type of the message entity.
|
MediaType |
Variant.getMediaType()
Get the media type of the variant.
|
static MediaType |
MediaType.valueOf(String type)
Creates a new instance of
MediaType by parsing the supplied string. |
MediaType |
MediaType.withCharset(String charset)
Create a new
MediaType instance with the same type, subtype and parameters copied from the original instance
and the supplied "charset" parameter. |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
HttpHeaders.getAcceptableMediaTypes()
Get a list of media types that are acceptable for the response.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
MediaType.isCompatible(MediaType other)
Check if this media type is compatible with another media type.
|
static Variant.VariantListBuilder |
Variant.mediaTypes(MediaType... mediaTypes)
Create a
Variant.VariantListBuilder initialized with a set of supported media types. |
abstract Variant.VariantListBuilder |
Variant.VariantListBuilder.mediaTypes(MediaType... mediaTypes)
Set the media type(s) for this variant.
|
static Response.ResponseBuilder |
Response.ok(Object entity,
MediaType type)
Create a new ResponseBuilder that contains a representation.
|
abstract Response.ResponseBuilder |
Response.ResponseBuilder.type(MediaType type)
Set the message entity media type.
|
| Constructor and Description |
|---|
Variant(MediaType mediaType,
Locale language,
String encoding)
Create a new instance of Variant.
|
Variant(MediaType mediaType,
String language,
String encoding)
Create a new instance of Variant.
|
Variant(MediaType mediaType,
String language,
String country,
String encoding)
Create a new instance of Variant.
|
Variant(MediaType mediaType,
String language,
String country,
String languageVariant,
String encoding)
Create a new instance of Variant.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
InterceptorContext.getMediaType()
Get media type of HTTP entity.
|
| Modifier and Type | Method and 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 long |
MessageBodyWriter.getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Originally, the method has been called before
writeTo to ascertain the length in bytes of the serialized form
of t. |
boolean |
MessageBodyReader.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyReader can produce an instance of a particular type.
|
boolean |
MessageBodyWriter.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Ascertain if the MessageBodyWriter supports a particular type.
|
T |
MessageBodyReader.readFrom(Class<T> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
Read a type from the
InputStream. |
void |
InterceptorContext.setMediaType(MediaType mediaType)
Update media type of HTTP entity.
|
void |
MessageBodyWriter.writeTo(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
Write a type to an HTTP message.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
OutboundSseEvent.getMediaType()
Get
media type of the event data. |
| Modifier and Type | Method and Description |
|---|---|
OutboundSseEvent.Builder |
OutboundSseEvent.Builder.mediaType(MediaType mediaType)
Set the
media type of the event data. |
<T> T |
InboundSseEvent.readData(Class<T> messageType,
MediaType mediaType)
Read event data as a given Java type.
|
<T> T |
InboundSseEvent.readData(GenericType<T> type,
MediaType mediaType)
Read event data as a given generic type.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ChunkedInput.getChunkType()
Get chunk data media type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ClientRequest.accept(MediaType... types)
Add new accepted types to the message headers.
|
JerseyInvocation.Builder |
JerseyInvocation.Builder.accept(MediaType... mediaTypes) |
JerseyInvocation.Builder |
JerseyWebTarget.request(MediaType... acceptedResponseTypes) |
void |
ChunkedInput.setChunkType(MediaType mediaType)
Set custom chunk data media type.
|
void |
ClientRequest.type(MediaType type)
Set message content type.
|
| Constructor and Description |
|---|
ChunkedInput(Type chunkType,
InputStream inputStream,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> headers,
MessageBodyWorkers messageBodyWorkers,
PropertiesDelegate propertiesDelegate)
Package-private constructor used by the
ChunkedInputReader. |
| Modifier and Type | Method and Description |
|---|---|
InvocationBuilderListener.InvocationBuilderContext |
InvocationBuilderListener.InvocationBuilderContext.accept(MediaType... mediaTypes)
Add the accepted response media types.
|
| Modifier and Type | Method and 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) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<?> type,
Type genericType,
Annotation[] annotations,
List<MediaType> acceptableMediaTypes)
Get the most acceptable media type supported for a Java type given a set of
acceptable media types.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
AbstractEntityProviderModel.declaredTypes()
Get types declared as supported (via
@Produces or @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.
|
| Modifier and Type | Method and Description |
|---|---|
static Charset |
MessageUtils.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.
|
boolean |
ReaderModel.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Safely invokes
isReadable method on the underlying provider. |
boolean |
WriterModel.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Safely invokes
isWriteable method on the underlying provider. |
Object |
MessageBodyWorkers.readFrom(Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
PropertiesDelegate propertiesDelegate,
InputStream entityStream,
Iterable<ReaderInterceptor> readerInterceptors,
boolean translateNce)
Reads a type from the
entityStream using interceptors. |
OutputStream |
MessageBodyWorkers.writeTo(Object entity,
Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
PropertiesDelegate propertiesDelegate,
OutputStream entityStream,
Iterable<WriterInterceptor> writerInterceptors)
Writers a type to the
entityStream using interceptors. |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
MessageBodyWorkers.getMessageBodyWriterMediaType(Class<?> type,
Type genericType,
Annotation[] annotations,
List<MediaType> acceptableMediaTypes)
Get the most acceptable media type supported for a Java type given a set of
acceptable media types.
|
String |
MessageBodyWorkers.readersToString(Map<MediaType,List<MessageBodyReader>> readers)
Convert a map media type to list of message body readers to a string.
|
String |
MessageBodyWorkers.writersToString(Map<MediaType,List<MessageBodyWriter>> writers)
Convert a map media type to list of message body writers to a string.
|
| Constructor and 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AcceptableMediaType
An acceptable media type.
|
class |
QualitySourceMediaType
A quality source media type.
|
| Modifier and Type | Field and Description |
|---|---|
static MediaType |
MediaTypes.WADL_TYPE
WADL Media type.
|
| Modifier and Type | Field and Description |
|---|---|
static org.glassfish.jersey.internal.util.collection.KeyComparator<MediaType> |
MessageBodyFactory.MEDIA_TYPE_KEY_COMPARATOR
Media type comparator.
|
static Comparator<List<? extends MediaType>> |
MediaTypes.MEDIA_TYPE_LIST_COMPARATOR
Comparator for lists of media types.
|
static Comparator<MediaType> |
MediaTypes.PARTIAL_ORDER_COMPARATOR
A 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_LIST
A singleton list containing the wildcard media type.
|
static List<MediaType> |
MediaTypes.WILDCARD_TYPE_SINGLETON_LIST
A singleton list containing the wildcard media type.
|
| Modifier and Type | Method and Description |
|---|---|
MediaType |
MediaTypeProvider.fromString(String header) |
MediaType |
InboundMessageContext.getMediaType()
Get the media type of the entity.
|
MediaType |
OutboundMessageContext.getMediaType()
Get the media type of the entity.
|
MediaType |
OutboundJaxrsResponse.getMediaType() |
MediaType |
MessageBodyFactory.getMessageBodyWriterMediaType(Class<?> c,
Type t,
Annotation[] as,
List<MediaType> acceptableMediaTypes) |
static MediaType |
MediaTypes.getTypeWildCart(MediaType mediaType)
Returns MediaType with wildcard in subtype.
|
static MediaType |
MediaTypes.mostSpecific(MediaType m1,
MediaType m2)
Get the most specific media type from a pair of media types.
|
static MediaType |
MediaTypes.stripQualityParams(MediaType mediaType)
Strips any quality parameters, i.e.
|
static MediaType |
MediaTypeProvider.valueOf(HttpHeaderReader reader)
Create a new
MediaType instance from a header reader. |
| Modifier and Type | Method and Description |
|---|---|
static List<MediaType> |
MediaTypes.createFrom(Consumes annotation)
Create an unmodifiable list of media types from the values declared in the
Consumes
annotation. |
static List<MediaType> |
MediaTypes.createFrom(Produces annotation)
Create an unmodifiable list of media types from the values declared in the
Produces
annotation. |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Charset |
AbstractMessageReaderWriterProvider.getCharset(MediaType m)
Get the character set from a media type.
|
static Charset |
ReaderWriter.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 int |
MediaTypes.getQuality(MediaType mt)
Reads quality factor from given media type.
|
static int |
QualitySourceMediaType.getQualitySource(MediaType mediaType)
Extract quality source information from the supplied
MediaType value. |
Map<MediaType,List<MessageBodyReader>> |
MessageBodyFactory.getReaders(MediaType mediaType) |
long |
ByteArrayProvider.getSize(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
long |
FileProvider.getSize(File t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
long |
InputStreamProvider.getSize(InputStream t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
long |
SourceProvider.SourceWriter.getSize(Source o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
long |
StreamingOutputProvider.getSize(StreamingOutput o,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
long |
AbstractMessageReaderWriterProvider.getSize(T t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static MediaType |
MediaTypes.getTypeWildCart(MediaType mediaType)
Returns MediaType with wildcard in subtype.
|
Map<MediaType,List<MessageBodyWriter>> |
MessageBodyFactory.getWriters(MediaType mediaType) |
boolean |
FormMultivaluedMapProvider.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 |
ByteArrayProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
DataSourceProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
FileProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
FormProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
InputStreamProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
ReaderProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
RenderedImageProvider.isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static boolean |
MessageBodyFactory.isReadable(MessageBodyReader<?> provider,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Safely invokes
isReadable method on the supplied provider. |
static boolean |
MediaTypes.isWildcard(MediaType mediaType)
Check if the given media type is a wildcard type.
|
boolean |
FormMultivaluedMapProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
SourceProvider.SourceWriter.isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType) |
boolean |
StreamingOutputProvider.isWriteable(Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType) |
boolean |
ByteArrayProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
DataSourceProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
FileProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
FormProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
InputStreamProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
ReaderProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
RenderedImageProvider.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
static boolean |
MessageBodyFactory.isWriteable(MessageBodyWriter<?> provider,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
Safely invokes
isWriteable method on the supplied provider. |
VariantListBuilder |
VariantListBuilder.mediaTypes(MediaType... mediaTypes) |
static MediaType |
MediaTypes.mostSpecific(MediaType m1,
MediaType m2)
Get the most specific media type from a pair of media types.
|
Object |
MessageBodyFactory.readFrom(Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
PropertiesDelegate propertiesDelegate,
InputStream entityStream,
Iterable<ReaderInterceptor> readerInterceptors,
boolean translateNce) |
byte[] |
ByteArrayProvider.readFrom(Class<byte[]> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
jakarta.activation.DataSource |
DataSourceProvider.readFrom(Class<jakarta.activation.DataSource> 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) |
MultivaluedMap<String,String> |
FormMultivaluedMapProvider.readFrom(Class<MultivaluedMap<String,String>> 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 inputStream) |
RenderedImage |
RenderedImageProvider.readFrom(Class<RenderedImage> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
SAXSource |
SourceProvider.SaxSourceReader.readFrom(Class<SAXSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
StreamSource |
SourceProvider.StreamSourceReader.readFrom(Class<StreamSource> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream) |
<M extends MultivaluedMap<String,String>> |
AbstractFormProvider.readFrom(M map,
MediaType mediaType,
boolean decode,
InputStream entityStream) |
static String |
AbstractMessageReaderWriterProvider.readFromAsString(InputStream in,
MediaType type)
Read the bytes of an input stream and convert to a string.
|
static String |
ReaderWriter.readFromAsString(InputStream in,
MediaType type)
Read the bytes of an input stream and convert to a string.
|
void |
OutboundMessageContext.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType)
Set a new message message entity.
|
void |
OutboundMessageContext.setMediaType(MediaType mediaType)
Set the message content media type.
|
static MediaType |
MediaTypes.stripQualityParams(MediaType mediaType)
Strips any quality parameters, i.e.
|
String |
MediaTypeProvider.toString(MediaType header) |
Response.ResponseBuilder |
OutboundJaxrsResponse.Builder.type(MediaType type) |
static boolean |
MediaTypes.typeEqual(MediaType m1,
MediaType m2)
|
static AcceptableMediaType |
AcceptableMediaType.valueOf(MediaType mediaType)
Create new acceptable media type instance from the supplied
media type. |
void |
ByteArrayProvider.writeTo(byte[] t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
void |
DataSourceProvider.writeTo(jakarta.activation.DataSource 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) |
<M extends MultivaluedMap<String,String>> |
AbstractFormProvider.writeTo(M t,
MediaType mediaType,
OutputStream entityStream) |
void |
FormMultivaluedMapProvider.writeTo(MultivaluedMap<String,String> t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
OutputStream |
MessageBodyFactory.writeTo(Object t,
Class<?> rawType,
Type type,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
PropertiesDelegate propertiesDelegate,
OutputStream entityStream,
Iterable<WriterInterceptor> writerInterceptors) |
void |
ReaderProvider.writeTo(Reader t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
void |
RenderedImageProvider.writeTo(RenderedImage t,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
void |
SourceProvider.SourceWriter.writeTo(Source source,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
void |
StreamingOutputProvider.writeTo(StreamingOutput o,
Class<?> t,
Type gt,
Annotation[] as,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entity) |
static void |
AbstractMessageReaderWriterProvider.writeToAsString(String s,
OutputStream out,
MediaType type)
Convert a string to bytes and write those bytes to an output stream.
|
static void |
ReaderWriter.writeToAsString(String s,
OutputStream out,
MediaType type)
Convert a string to bytes and write those bytes to an output stream.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
MediaTypes.convertToString(Iterable<MediaType> mediaTypes)
Convert media types into
String. |
MediaType |
MessageBodyFactory.getMessageBodyWriterMediaType(Class<?> c,
Type t,
Annotation[] as,
List<MediaType> acceptableMediaTypes) |
static boolean |
MediaTypes.intersect(List<? extends MediaType> ml1,
List<? extends MediaType> ml2)
Determine if the two list of media types share a common
type-equal
sub-list. |
static boolean |
MediaTypes.intersect(List<? extends MediaType> ml1,
List<? extends MediaType> ml2)
Determine if the two list of media types share a common
type-equal
sub-list. |
String |
MessageBodyFactory.readersToString(Map<MediaType,List<MessageBodyReader>> readers) |
static List<MediaType> |
HttpHeaderReader.readMediaTypes(List<MediaType> l,
String header)
TODO javadoc.
|
String |
MessageBodyFactory.writersToString(Map<MediaType,List<MessageBodyWriter>> writers) |
| Constructor and 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 provided
entityStream. |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ContainerResponse.getMediaType() |
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ContainerRequest.getAcceptableMediaTypes() |
| Modifier and Type | Method and Description |
|---|---|
long |
ChunkedResponseWriter.getSize(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
boolean |
ChunkedResponseWriter.isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType) |
void |
ContainerResponse.setEntity(Object entity,
Annotation[] annotations,
MediaType mediaType) |
void |
ContainerResponse.setMediaType(MediaType mediaType)
Set the message content media type.
|
void |
ChunkedResponseWriter.writeTo(ChunkedOutput<?> chunkedOutput,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream) |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,MediaType> |
UriConnegFilter.mediaTypeMappings |
| Constructor and Description |
|---|
UriConnegFilter(Map<String,MediaType> mediaTypeMappings,
Map<String,String> languageMappings)
Create a filter with suffix to media type mappings and suffix to
language mappings.
|
| Modifier and Type | Method and Description |
|---|---|
List<MediaType> |
ResourceMethod.getConsumedTypes() |
List<MediaType> |
Consuming.getConsumedTypes()
Get the consumed media types supported by the component.
|
List<MediaType> |
ResourceMethod.getProducedTypes() |
List<MediaType> |
Producing.getProducedTypes()
Get the produced media types supported by the component.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(MediaType... types)
Add consumed media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.produces(MediaType... types)
Add produced media types supported by the component.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceMethod.Builder |
ResourceMethod.Builder.consumes(Collection<MediaType> types)
Add consumed media types supported by the component.
|
ResourceMethod.Builder |
ResourceMethod.Builder.produces(Collection<MediaType> types)
Add produced media types supported by the component.
|
| Constructor and 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 and Description |
|---|
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,
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.
|
Method(String httpMethod,
List<MediaType> consumes,
List<MediaType> produces,
Inflector<ContainerRequestContext,Response> inflector)
Create new method instance.
|
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,
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 path,
String httpMethod,
List<MediaType> consumes,
List<MediaType> produces,
Inflector<ContainerRequestContext,Response> inflector)
Create new method instance.
|
| Modifier and Type | Method and Description |
|---|---|
Representation |
WadlGenerator.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
ApplicationDescription.ExternalGrammar.getType() |
| Modifier and Type | Method and Description |
|---|---|
Representation |
WadlGeneratorImpl.createRequestRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType) |
Representation |
WadlGeneratorImpl.createResponseRepresentation(Resource r,
ResourceMethod m,
MediaType mediaType) |
| Constructor and Description |
|---|
ExternalGrammar(MediaType type,
byte[] content) |
| Modifier and Type | Method and Description |
|---|---|
<T> ContextResolver<T> |
ContextResolvers.resolve(Type type,
MediaType mediaType)
Get
ContextResolver<T> instance for a given type
and media type. |
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.