@Provider @Consumes(value="*/*") @Produces(value="*/*") public class DataSourceProvider extends AbstractEntityProvider<DataSource>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DataSourceProvider.SequencedDataSource |
| Constructor and Description |
|---|
DataSourceProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
FIXME Comment this
|
boolean |
isWriteable(Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType)
FIXME Comment this
|
static DataSource |
readDataSource(InputStream in,
MediaType mediaType) |
DataSource |
readFrom(Class<DataSource> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,String> httpHeaders,
InputStream entityStream)
FIXME Comment this
|
void |
writeTo(DataSource dataSource,
Class<?> type,
Type genericType,
Annotation[] annotations,
MediaType mediaType,
MultivaluedMap<String,Object> httpHeaders,
OutputStream entityStream)
FIXME Comment this
|
getSizepublic static DataSource readDataSource(InputStream in, MediaType mediaType) throws IOException
in - mediaType - IOExceptionpublic boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
type - genericType - annotations - mediaType - the media type of the HTTP entity, if one is not
specified in the request then application/octet-stream is
used.MessageBodyReaderpublic DataSource readFrom(Class<DataSource> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws IOException
type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionWebApplicationExceptionjavax.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(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
type - genericType - annotations - mediaType - the media type of the HTTP entity.javax.ws.rs.ext.MessageBodyWriter#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[])public void writeTo(DataSource dataSource, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
dataSource - type - genericType - annotations - mediaType - httpHeaders - entityStream - IOExceptionWebApplicationExceptionjavax.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)Copyright © 2016 JBoss by Red Hat. All rights reserved.