org.apache.cxf.jaxrs.provider
Class AtomEntryProvider

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

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


Constructor Summary
AtomEntryProvider()
           
 
Method Summary
 long getSize(org.apache.abdera.model.Entry entry)
           
 boolean isReadable(java.lang.Class<?> type)
           
 boolean isWriteable(java.lang.Class<?> type)
           
 org.apache.abdera.model.Entry readFrom(java.lang.Class<org.apache.abdera.model.Entry> clazz, 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.Entry entry, 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

AtomEntryProvider

public AtomEntryProvider()
Method Detail

readFrom

public org.apache.abdera.model.Entry readFrom(java.lang.Class<org.apache.abdera.model.Entry> clazz,
                                              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.Entry>
Throws:
java.io.IOException

isReadable

public boolean isReadable(java.lang.Class<?> type)
Specified by:
isReadable in interface javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>

isWriteable

public boolean isWriteable(java.lang.Class<?> type)
Specified by:
isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>

writeTo

public void writeTo(org.apache.abdera.model.Entry entry,
                    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.Entry>
Throws:
java.io.IOException

getSize

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


Apache CXF