Class BinaryAttachmentResponse

java.lang.Object
org.n52.shetland.ogc.sos.response.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 Details

    • BinaryAttachmentResponse

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

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object