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 class
private static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisboolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType) FIXME Comment thisstatic DataSource
readDataSource
(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 thisvoid
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) 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:
IOException
javax.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:
IOException
javax.ws.rs.WebApplicationException
-