Class DataSourceProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.AbstractEntityProvider<DataSource>
org.jboss.resteasy.plugins.providers.DataSourceProvider
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<DataSource>,javax.ws.rs.ext.MessageBodyWriter<DataSource>
@Provider
@Consumes("*/*")
@Produces("*/*")
public class DataSourceProvider
extends AbstractEntityProvider<DataSource>
- Version:
- $Revision:$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprivate static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisstatic DataSourcereadDataSource(InputStream in, javax.ws.rs.core.MediaType mediaType) readFrom(Class<DataSource> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) FIXME Comment thisvoidwriteTo(DataSource dataSource, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) FIXME Comment thisMethods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider
getSize
-
Constructor Details
-
DataSourceProvider
public DataSourceProvider()
-
-
Method Details
-
readDataSource
public static DataSource readDataSource(InputStream in, javax.ws.rs.core.MediaType mediaType) throws IOException - Parameters:
in-mediaType-- Returns:
- Throws:
IOException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment this- Parameters:
type-genericType-annotations-- Returns:
- See Also:
-
readFrom
public DataSource readFrom(Class<DataSource> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOExceptionFIXME Comment this- Parameters:
type-genericType-annotations-mediaType-httpHeaders-entityStream-- Returns:
- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment this- Parameters:
type-genericType-annotations-- Returns:
-
writeTo
public void writeTo(DataSource dataSource, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOExceptionFIXME Comment this- Parameters:
dataSource-type-genericType-annotations-mediaType-httpHeaders-entityStream-- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-