Class SourceProvider.SourceWriter

  • All Implemented Interfaces:
    jakarta.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 jakarta.ws.rs.ext.MessageBodyWriter<Source>
    Provider for marshaling Source instances.
    • Method Detail

      • isWriteable

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

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