Class SourceProvider
java.lang.Object
org.jboss.resteasy.plugins.providers.SourceProvider
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<Source>
,jakarta.ws.rs.ext.MessageBodyWriter<Source>
,AsyncBufferedMessageBodyWriter<Source>
,AsyncMessageBodyWriter<Source>
@Provider
@Produces({"text/xml","application/xml","application/*+xml"})
@Consumes({"text/xml","application/xml","application/*+xml"})
public class SourceProvider
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<Source>, AsyncBufferedMessageBodyWriter<Source>
- Version:
- $Revision: 1 $
- Author:
- BillBurke
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(Source inputStream, 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<Source> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) void
writeTo
(Source source, 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
-
Constructor Details
-
SourceProvider
public SourceProvider()
-
-
Method Details
-
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<Source>
-
readFrom
public Source readFrom(Class<Source> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<Source>
- Throws:
IOException
-
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<Source>
-
getSize
public long getSize(Source inputStream, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Source>
-
writeTo
public void writeTo(Source source, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<Source>
- Throws:
IOException
-