Class AtomFeedProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.atom.AtomFeedProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Feed>
,jakarta.ws.rs.ext.MessageBodyWriter<Feed>
,AsyncBufferedMessageBodyWriter<Feed>
,AsyncMessageBodyWriter<Feed>
@Provider
@Produces("application/atom+*")
@Consumes("application/atom+*")
public class AtomFeedProvider
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<Feed>, AsyncBufferedMessageBodyWriter<Feed>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JAXBContextFinder
getFinder
(jakarta.ws.rs.core.MediaType type) long
getSize
(Feed feed, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) readFrom
(Class<Feed> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(Feed feed, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.resteasy.core.messagebody.AsyncBufferedMessageBodyWriter
asyncWriteTo
-
Field Details
-
providers
@Context protected jakarta.ws.rs.ext.Providers providers
-
-
Constructor Details
-
AtomFeedProvider
public AtomFeedProvider()
-
-
Method Details
-
getFinder
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<Feed>
-
readFrom
public Feed readFrom(Class<Feed> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<Feed>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Feed>
-
getSize
public long getSize(Feed feed, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Feed>
-
writeTo
public void writeTo(Feed feed, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Feed>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-