Class SourceProvider.SourceWriter

java.lang.Object
org.glassfish.jersey.message.internal.SourceProvider.SourceWriter
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyWriter<Source>
Enclosing class:
SourceProvider

@Produces({"application/xml","text/xml","*/*"}) @Consumes({"application/xml","text/xml","*/*"}) @Singleton public static final class SourceProvider.SourceWriter extends Object implements javax.ws.rs.ext.MessageBodyWriter<Source>
Provider for marshaling Source instances.
  • Field Details

    • saxParserFactory

      private final javax.inject.Provider<SAXParserFactory> saxParserFactory
    • transformerFactory

      private final javax.inject.Provider<TransformerFactory> transformerFactory
  • Constructor Details

  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Source>
    • getSize

      public long getSize(Source o, Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface javax.ws.rs.ext.MessageBodyWriter<Source>
    • writeTo

      public void writeTo(Source source, Class<?> t, Type gt, Annotation[] as, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
      Specified by:
      writeTo in interface javax.ws.rs.ext.MessageBodyWriter<Source>
      Throws:
      IOException