Class BlobWriter

  • All Implemented Interfaces:
    javax.ws.rs.ext.MessageBodyWriter<Blob>

    @Provider
    public class BlobWriter
    extends Object
    implements javax.ws.rs.ext.MessageBodyWriter<Blob>
    Author:
    Bogdan Stefanescu
    • Constructor Detail

      • BlobWriter

        public BlobWriter()
    • Method Detail

      • commitAndReopenTransaction

        protected void commitAndReopenTransaction()
      • getSize

        public long getSize​(Blob arg0,
                            Class<?> arg1,
                            Type arg2,
                            Annotation[] arg3,
                            javax.ws.rs.core.MediaType arg4)
        Specified by:
        getSize in interface javax.ws.rs.ext.MessageBodyWriter<Blob>
      • isWriteable

        public boolean isWriteable​(Class<?> arg0,
                                   Type type,
                                   Annotation[] arg2,
                                   javax.ws.rs.core.MediaType arg3)
        Specified by:
        isWriteable in interface javax.ws.rs.ext.MessageBodyWriter<Blob>