org.jboss.resteasy.plugins.providers
Class DataSourceProvider

java.lang.Object
  extended by org.jboss.resteasy.plugins.providers.AbstractEntityProvider<javax.activation.DataSource>
      extended by org.jboss.resteasy.plugins.providers.DataSourceProvider
All Implemented Interfaces:
MessageBodyReader<javax.activation.DataSource>, MessageBodyWriter<javax.activation.DataSource>

@Provider
public class DataSourceProvider
extends AbstractEntityProvider<javax.activation.DataSource>

Version:
$Revision:$
Author:
Ryan J. McDonough

Constructor Summary
DataSourceProvider()
           
 
Method Summary
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
          FIXME Comment this
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType)
          FIXME Comment this
static javax.activation.DataSource readDataSource(java.io.InputStream in, MediaType mediaType)
           
 javax.activation.DataSource readFrom(java.lang.Class<javax.activation.DataSource> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, MediaType mediaType, 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, MediaType mediaType, MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders, java.io.OutputStream entityStream)
          FIXME Comment this
 
Methods inherited from class org.jboss.resteasy.plugins.providers.AbstractEntityProvider
getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceProvider

public DataSourceProvider()
Method Detail

readDataSource

public static javax.activation.DataSource readDataSource(java.io.InputStream in,
                                                         MediaType mediaType)
                                                  throws java.io.IOException
Parameters:
in -
mediaType -
Returns:
Throws:
java.io.IOException

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          MediaType mediaType)
FIXME Comment this

Parameters:
type -
genericType -
annotations -
mediaType - the media type of the HTTP entity.
Returns:
See Also:
javax.ws.rs.ext.MessageBodyReader#isReadable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[])

readFrom

public javax.activation.DataSource readFrom(java.lang.Class<javax.activation.DataSource> type,
                                            java.lang.reflect.Type genericType,
                                            java.lang.annotation.Annotation[] annotations,
                                            MediaType mediaType,
                                            MultivaluedMap<java.lang.String,java.lang.String> httpHeaders,
                                            java.io.InputStream entityStream)
                                     throws java.io.IOException
FIXME Comment this

Parameters:
type -
genericType -
annotations -
mediaType -
httpHeaders -
entityStream -
Returns:
Throws:
java.io.IOException
WebApplicationException
See Also:
javax.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)

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           MediaType mediaType)
FIXME Comment this

Parameters:
type -
genericType -
annotations -
mediaType - the media type of the HTTP entity.
Returns:
See Also:
javax.ws.rs.ext.MessageBodyWriter#isWriteable(java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[])

writeTo

public void writeTo(javax.activation.DataSource dataSource,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    MediaType mediaType,
                    MultivaluedMap<java.lang.String,java.lang.Object> httpHeaders,
                    java.io.OutputStream entityStream)
             throws java.io.IOException
FIXME Comment this

Parameters:
dataSource -
type -
genericType -
annotations -
mediaType -
httpHeaders -
entityStream -
Throws:
java.io.IOException
WebApplicationException
See Also:
javax.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 © 2009. All Rights Reserved.