org.apache.cxf.jaxrs.provider
Class DataSourceProvider
java.lang.Object
org.apache.cxf.jaxrs.provider.DataSourceProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.MessageBodyReader<javax.activation.DataSource>, javax.ws.rs.ext.MessageBodyWriter<javax.activation.DataSource>
public class DataSourceProvider
- extends Object
- implements javax.ws.rs.ext.MessageBodyReader<javax.activation.DataSource>, javax.ws.rs.ext.MessageBodyWriter<javax.activation.DataSource>
Method Summary |
long |
getSize(javax.activation.DataSource 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)
|
javax.activation.DataSource |
readFrom(Class<javax.activation.DataSource> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
|
void |
writeTo(javax.activation.DataSource src,
Class<?> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataSourceProvider
public DataSourceProvider()
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<javax.activation.DataSource>
readFrom
public javax.activation.DataSource readFrom(Class<javax.activation.DataSource> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
InputStream is)
throws IOException
- Specified by:
readFrom
in interface javax.ws.rs.ext.MessageBodyReader<javax.activation.DataSource>
- Throws:
IOException
getSize
public long getSize(javax.activation.DataSource t,
Class<?> type,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType mt)
- Specified by:
getSize
in interface javax.ws.rs.ext.MessageBodyWriter<javax.activation.DataSource>
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<javax.activation.DataSource>
writeTo
public void writeTo(javax.activation.DataSource src,
Class<?> clazz,
Type genericType,
Annotation[] annotations,
javax.ws.rs.core.MediaType type,
javax.ws.rs.core.MultivaluedMap<String,Object> headers,
OutputStream os)
throws IOException
- Specified by:
writeTo
in interface javax.ws.rs.ext.MessageBodyWriter<javax.activation.DataSource>
- Throws:
IOException
Apache CXF