public class SimpleFileDataProvider extends java.lang.Object implements ExportDataProvider
The path must be listed in the `cuba.download.directories` application property.
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
protected java.lang.String |
fileDownloadContext |
protected java.lang.String |
filePath |
protected java.io.InputStream |
inputStream |
protected ServerSelector |
serverSelector |
protected UserSessionSource |
userSessionSource |
Constructor and Description |
---|
SimpleFileDataProvider(java.lang.String filePath) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
provide() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected java.lang.String filePath
protected java.io.InputStream inputStream
protected ServerSelector serverSelector
protected UserSessionSource userSessionSource
protected Configuration configuration
protected java.lang.String fileDownloadContext
public java.io.InputStream provide()
provide
in interface ExportDataProvider