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:$
  • 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:
      • MessageBodyReader
    • 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 IOException
      FIXME 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 IOException
      FIXME Comment this
      Parameters:
      dataSource -
      type -
      genericType -
      annotations -
      mediaType -
      httpHeaders -
      entityStream -
      Throws:
      IOException
      javax.ws.rs.WebApplicationException