com.sun.jersey.atom.abdera.impl.provider.entity
Class EntryProvider

java.lang.Object
  extended by com.sun.jersey.atom.abdera.impl.provider.entity.AbstractCompletableReaderWriter<org.apache.abdera.model.Entry>
      extended by com.sun.jersey.atom.abdera.impl.provider.entity.EntryProvider
All Implemented Interfaces:
CompletableReader<org.apache.abdera.model.Entry>, javax.ws.rs.ext.MessageBodyReader<org.apache.abdera.model.Entry>, javax.ws.rs.ext.MessageBodyWriter<org.apache.abdera.model.Entry>

public class EntryProvider
extends AbstractCompletableReaderWriter<org.apache.abdera.model.Entry>

JAX-RS Provider for an Atom Entry Document instance.


Constructor Summary
EntryProvider()
           
 
Method Summary
 long getSize(org.apache.abdera.model.Entry entry, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
           
 org.apache.abdera.model.Entry readFrom(java.lang.Class<org.apache.abdera.model.Entry> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers, java.io.InputStream stream)
           
 void writeTo(org.apache.abdera.model.Entry entry, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers, java.io.OutputStream stream)
           
 
Methods inherited from class com.sun.jersey.atom.abdera.impl.provider.entity.AbstractCompletableReaderWriter
complete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntryProvider

public EntryProvider()
Method Detail

getSize

public long getSize(org.apache.abdera.model.Entry entry,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType)

isReadable

public boolean isReadable(java.lang.Class<?> type,
                          java.lang.reflect.Type genericType,
                          java.lang.annotation.Annotation[] annotations,
                          javax.ws.rs.core.MediaType mediaType)

isWriteable

public boolean isWriteable(java.lang.Class<?> type,
                           java.lang.reflect.Type genericType,
                           java.lang.annotation.Annotation[] annotations,
                           javax.ws.rs.core.MediaType mediaType)

readFrom

public org.apache.abdera.model.Entry readFrom(java.lang.Class<org.apache.abdera.model.Entry> type,
                                              java.lang.reflect.Type genericType,
                                              java.lang.annotation.Annotation[] annotations,
                                              javax.ws.rs.core.MediaType mediaType,
                                              javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> headers,
                                              java.io.InputStream stream)
                                       throws java.io.IOException,
                                              javax.ws.rs.WebApplicationException
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException

writeTo

public void writeTo(org.apache.abdera.model.Entry entry,
                    java.lang.Class<?> type,
                    java.lang.reflect.Type genericType,
                    java.lang.annotation.Annotation[] annotations,
                    javax.ws.rs.core.MediaType mediaType,
                    javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers,
                    java.io.OutputStream stream)
             throws java.io.IOException,
                    javax.ws.rs.WebApplicationException
Throws:
java.io.IOException
javax.ws.rs.WebApplicationException


Copyright © 2011 Sun Microsystems, Inc. All Rights Reserved.