Class DataFormatProvider<T>
- java.lang.Object
-
- org.apache.camel.component.cxf.jaxrs.DataFormatProvider<T>
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>,javax.ws.rs.ext.MessageBodyWriter<T>
public class DataFormatProvider<T> extends Object implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>
-
-
Constructor Summary
Constructors Constructor Description DataFormatProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize(T obj, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)booleanisReadable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)booleanisWriteable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)TreadFrom(Class<T> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is)voidsetFormat(String mediaType, org.apache.camel.spi.DataFormat format)voidsetFormat(org.apache.camel.spi.DataFormat format)voidsetFormats(Map<String,org.apache.camel.spi.DataFormat> formats)voidwriteTo(T obj, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<T>
-
isWriteable
public boolean isWriteable(Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
readFrom
public T readFrom(Class<T> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<T>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
getSize
public long getSize(T obj, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<T>
-
writeTo
public void writeTo(T obj, Class<?> cls, Type type, Annotation[] anns, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<T>- Throws:
IOExceptionjavax.ws.rs.WebApplicationException
-
setFormat
public void setFormat(org.apache.camel.spi.DataFormat format)
-
setFormat
public void setFormat(String mediaType, org.apache.camel.spi.DataFormat format)
-
-