log.info("Starting download for file. filename:" + filename + ", content-type:" + byteArrayResourceStream.getContentType());
}
public static void setDownloadTarget(final String filename, final IResourceStream resourceStream)
{
final ResourceStreamRequestHandler handler = new ResourceStreamRequestHandler(resourceStream);
handler.setFileName(filename).setContentDisposition(ContentDisposition.ATTACHMENT);
RequestCycle.get().scheduleRequestHandlerAfterCurrent(handler);
log.info("Starting download for file. filename:" + filename + ", content-type:" + resourceStream.getContentType());
}