Class BinaryAttachmentResponse


  • public class BinaryAttachmentResponse
    extends Object
    Simple response class for binary data to be included as a response attachment (for download)
    Since:
    1.0.0
    • Constructor Detail

      • BinaryAttachmentResponse

        public BinaryAttachmentResponse​(byte[] bytes,
                                        MediaType contentType,
                                        String filename)
    • Method Detail

      • getBytes

        public byte[] getBytes()
      • setBytes

        public void setBytes​(byte[] bytes)
      • getContentType

        public MediaType getContentType()
      • setContentType

        public void setContentType​(MediaType contentType)
      • getFilename

        public String getFilename()
      • setFilename

        public void setFilename​(String filename)
      • getSize

        public int getSize()