Apache CXF API

org.apache.cxf.jaxrs.provider
Class DataSourceProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.DataSourceProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter

public class DataSourceProvider
extends Object
implements javax.ws.rs.ext.MessageBodyReader, javax.ws.rs.ext.MessageBodyWriter


Constructor Summary
DataSourceProvider()
           
 
Method Summary
 long getSize(Object t, Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 boolean isReadable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 boolean isWriteable(Class type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 Object readFrom(Class cls, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap headers, InputStream is)
           
 void writeTo(Object src, Class cls, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType type, javax.ws.rs.core.MultivaluedMap headers, OutputStream os)
           
 
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

isReadable

public boolean isReadable(Class type,
                          Type genericType,
                          Annotation[] annotations,
                          javax.ws.rs.core.MediaType mt)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader

readFrom

public Object readFrom(Class cls,
                       Type genericType,
                       Annotation[] annotations,
                       javax.ws.rs.core.MediaType type,
                       javax.ws.rs.core.MultivaluedMap headers,
                       InputStream is)
                throws IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader
Throws:
IOException

getSize

public long getSize(Object t,
                    Class type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mt)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter

isWriteable

public boolean isWriteable(Class type,
                           Type genericType,
                           Annotation[] annotations,
                           javax.ws.rs.core.MediaType mt)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter

writeTo

public void writeTo(Object src,
                    Class cls,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType type,
                    javax.ws.rs.core.MultivaluedMap headers,
                    OutputStream os)
             throws IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter
Throws:
IOException

Apache CXF API

Apache CXF