public class MultipartFileSender extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTENT_DISPOSITION_ATTACHMENT |
static String |
CONTENT_DISPOSITION_INLINE |
protected org.slf4j.Logger |
log |
| Constructor and Description |
|---|
MultipartFileSender(InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
static MultipartFileSender |
fromInputStream(InputStream inputStream) |
boolean |
isNoRangeRequest() |
boolean |
isValid() |
void |
serveResource() |
MultipartFileSender |
with(javax.servlet.http.HttpServletRequest httpRequest) |
MultipartFileSender |
with(javax.servlet.http.HttpServletResponse httpResponse) |
MultipartFileSender |
withBufferSize(int bufferSize) |
MultipartFileSender |
withChecksum(String checksum) |
MultipartFileSender |
withDisposition(String contentDisposition) |
MultipartFileSender |
withFileName(String fileName) |
MultipartFileSender |
withLastModified(long lastModified) |
MultipartFileSender |
withLength(long length) |
MultipartFileSender |
withMimetype(String mimetype) |
protected final org.slf4j.Logger log
public static final String CONTENT_DISPOSITION_INLINE
public static final String CONTENT_DISPOSITION_ATTACHMENT
public MultipartFileSender(InputStream inputStream)
public static MultipartFileSender fromInputStream(InputStream inputStream)
public MultipartFileSender with(javax.servlet.http.HttpServletRequest httpRequest)
public MultipartFileSender with(javax.servlet.http.HttpServletResponse httpResponse)
public MultipartFileSender withLength(long length)
public MultipartFileSender withFileName(String fileName)
public MultipartFileSender withChecksum(String checksum)
public MultipartFileSender withMimetype(String mimetype)
public MultipartFileSender withLastModified(long lastModified)
public MultipartFileSender withBufferSize(int bufferSize)
public MultipartFileSender withDisposition(String contentDisposition)
public void serveResource()
throws IOException
IOExceptionpublic boolean isValid()
throws IOException
IOExceptionpublic boolean isNoRangeRequest()
throws IOException
IOExceptionCopyright © 2019 DuraSpace. All rights reserved.