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 Summary
Constructors Constructor Description BinaryAttachmentResponse(byte[] bytes, MediaType contentType, String filename)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytes()MediaTypegetContentType()StringgetFilename()intgetSize()voidsetBytes(byte[] bytes)voidsetContentType(MediaType contentType)voidsetFilename(String filename)StringtoString()
-
-
-
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()
-
-