Apache CXF API

org.apache.cxf.jaxrs.provider
Class AbstractAtomProvider<T extends Element>

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AbstractAtomProvider<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>, javax.ws.rs.ext.MessageBodyWriter<T>
Direct Known Subclasses:
AtomEntryProvider, AtomFeedProvider

public abstract class AbstractAtomProvider<T extends Element>
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>


Constructor Summary
AbstractAtomProvider()
           
 
Method Summary
 long getSize(T element, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mt)
           
 T readFrom(Class<T> clazz, Type t, Annotation[] a, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<String,String> headers, InputStream is)
           
 void setFormattedOutput(boolean formattedOutput)
           
 void writeTo(T element, Class<?> clazz, Type type, Annotation[] a, javax.ws.rs.core.MediaType mt, 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
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyWriter
isWriteable
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader
isReadable
 

Constructor Detail

AbstractAtomProvider

public AbstractAtomProvider()
Method Detail

getSize

public long getSize(T element,
                    Class<?> type,
                    Type genericType,
                    Annotation[] annotations,
                    javax.ws.rs.core.MediaType mt)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<T extends Element>

writeTo

public void writeTo(T element,
                    Class<?> clazz,
                    Type type,
                    Annotation[] a,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap<String,Object> headers,
                    OutputStream os)
             throws IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<T extends Element>
Throws:
IOException

readFrom

public T readFrom(Class<T> clazz,
                  Type t,
                  Annotation[] a,
                  javax.ws.rs.core.MediaType mt,
                  javax.ws.rs.core.MultivaluedMap<String,String> headers,
                  InputStream is)
                           throws IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<T extends Element>
Throws:
IOException

setFormattedOutput

public void setFormattedOutput(boolean formattedOutput)

Apache CXF API

Apache CXF