@Provider @Consumes(value="*/*") @Produces(value="*/*") public class DataSourceProvider extends AbstractEntityProvider<javax.activation.DataSource>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataSourceProvider.SequencedDataSource |
private static class |
DataSourceProvider.TempFileCleanable |
| Constructor and Description |
|---|
DataSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
boolean |
isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
FIXME Comment this
|
static javax.activation.DataSource |
readDataSource(java.io.InputStream in,
javax.ws.rs.core.MediaType mediaType) |
javax.activation.DataSource |
readFrom(java.lang.Class<javax.activation.DataSource> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
FIXME Comment this
|
void |
writeTo(javax.activation.DataSource dataSource,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
FIXME Comment this
|
getSizepublic static javax.activation.DataSource readDataSource(java.io.InputStream in,
javax.ws.rs.core.MediaType mediaType)
throws java.io.IOException
in - mediaType - java.io.IOExceptionpublic boolean isReadable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - MessageBodyReaderpublic javax.activation.DataSource readFrom(java.lang.Class<javax.activation.DataSource> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
java.io.InputStream entityStream)
throws java.io.IOException
type - genericType - annotations - mediaType - httpHeaders - entityStream - java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionjavax.ws.rs.ext.MessageBodyReader#readFrom(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.InputStream)public boolean isWriteable(java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType)
type - genericType - annotations - javax.ws.rs.ext.MessageBodyWriter#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[])public void writeTo(javax.activation.DataSource dataSource,
java.lang.Class<?> type,
java.lang.reflect.Type genericType,
java.lang.annotation.Annotation[] annotations,
javax.ws.rs.core.MediaType mediaType,
javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
java.io.OutputStream entityStream)
throws java.io.IOException
dataSource - type - genericType - annotations - mediaType - httpHeaders - entityStream - java.io.IOExceptionjavax.ws.rs.WebApplicationExceptionjavax.ws.rs.ext.MessageBodyWriter#writeTo(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream)