Class AtomEntryProvider
- java.lang.Object
-
- org.jboss.resteasy.plugins.providers.atom.AtomEntryProvider
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<Entry>,javax.ws.rs.ext.MessageBodyWriter<Entry>
@Provider @Produces("application/atom+*") @Consumes("application/atom+*") public class AtomEntryProvider extends java.lang.Object implements javax.ws.rs.ext.MessageBodyReader<Entry>, javax.ws.rs.ext.MessageBodyWriter<Entry>- Version:
- $Revision: 1 $
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.ws.rs.ext.Providersproviders
-
Constructor Summary
Constructors Constructor Description AtomEntryProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected JAXBContextFindergetFinder(javax.ws.rs.core.MediaType type)longgetSize(Entry entry, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)booleanisWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)EntryreadFrom(java.lang.Class<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> httpHeaders, java.io.InputStream entityStream)voidwriteTo(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> httpHeaders, java.io.OutputStream entityStream)
-
-
-
Method Detail
-
getFinder
protected JAXBContextFinder getFinder(javax.ws.rs.core.MediaType type)
-
isReadable
public boolean isReadable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isReadablein interfacejavax.ws.rs.ext.MessageBodyReader<Entry>
-
readFrom
public Entry readFrom(java.lang.Class<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> httpHeaders, java.io.InputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Specified by:
readFromin interfacejavax.ws.rs.ext.MessageBodyReader<Entry>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)- Specified by:
isWriteablein interfacejavax.ws.rs.ext.MessageBodyWriter<Entry>
-
getSize
public long getSize(Entry entry, java.lang.Class<?> type, java.lang.reflect.Type genericType, java.lang.annotation.Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
getSizein interfacejavax.ws.rs.ext.MessageBodyWriter<Entry>
-
writeTo
public void writeTo(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> httpHeaders, java.io.OutputStream entityStream) throws java.io.IOException, javax.ws.rs.WebApplicationException
- Specified by:
writeToin interfacejavax.ws.rs.ext.MessageBodyWriter<Entry>- Throws:
java.io.IOExceptionjavax.ws.rs.WebApplicationException
-
-