Apache CXF API

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

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.atom.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 org.apache.abdera.model.Element>
extends Object
implements javax.ws.rs.ext.MessageBodyWriter<T>, javax.ws.rs.ext.MessageBodyReader<T>


Constructor Summary
AbstractAtomProvider()
           
 
Method Summary
protected  org.apache.abdera.writer.Writer createWriter(String writerName)
           
 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 setAutodetectCharset(boolean autodetectCharset)
           
 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 org.apache.abdera.model.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 org.apache.abdera.model.Element>
Throws:
IOException

createWriter

protected org.apache.abdera.writer.Writer createWriter(String writerName)

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 org.apache.abdera.model.Element>
Throws:
IOException

setFormattedOutput

public void setFormattedOutput(boolean formattedOutput)

setAutodetectCharset

public void setAutodetectCharset(boolean autodetectCharset)

Apache CXF API

Apache CXF