org.apache.cxf.jaxrs.provider
Class AtomFeedProvider

java.lang.Object
  extended by org.apache.cxf.jaxrs.provider.AtomFeedProvider
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Feed>, javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Feed>

@Provider
public class AtomFeedProvider
extends java.lang.Object
implements javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Feed>, javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Feed>


Constructor Summary
AtomFeedProvider()
           
 
Method Summary
 long getSize(org.apache.abdera.model.Feed feed)
           
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations)
           
 org.apache.abdera.model.Feed readFrom(java.lang.Class<org.apache.abdera.model.Feed> clazz, java.lang.reflect.Type t, java.lang.annotation.Annotation[] a, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.InputStream is)
           
 void writeTo(org.apache.abdera.model.Feed feed, java.lang.Class<?> clazz, java.lang.reflect.Type type, java.lang.annotation.Annotation[] a, javax.ws.rs.core.MediaType mt, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomFeedProvider

public AtomFeedProvider()
Method Detail

getSize

public long getSize(org.apache.abdera.model.Feed feed)
Specified by:
getSize in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Feed>

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Feed>

writeTo

public void writeTo(org.apache.abdera.model.Feed feed,
                    java.lang.Class<?> clazz,
                    java.lang.reflect.Type type,
                    java.lang.annotation.Annotation[] a,
                    javax.ws.rs.core.MediaType mt,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
                    java.io.OutputStream os)
             throws java.io.IOException
Specified by:
writeTo in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Feed>
Throws:
java.io.IOException

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Feed>

readFrom

public org.apache.abdera.model.Feed readFrom(java.lang.Class<org.apache.abdera.model.Feed> clazz,
                                             java.lang.reflect.Type t,
                                             java.lang.annotation.Annotation[] a,
                                             javax.ws.rs.core.MediaType mt,
                                             javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
                                             java.io.InputStream is)
                                      throws java.io.IOException
Specified by:
readFrom in interface javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Feed>
Throws:
java.io.IOException


Apache CXF