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 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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.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 interface jakarta.ws.rs.ext.MessageBodyWriter<Source>
      Throws:
      IOException