VirtualFileLocalResponseInterface¶
-
class
kanzi::connect
::
VirtualFileLocalResponseInterface
¶ Defines an interface for local virtual file responses.
Subclassed by VirtualFileService
Public Functions
-
~VirtualFileLocalResponseInterface
()¶ Virtual destructor.
Provide response as a path to existing file.
- Parameters
workItem
: where to store the datafilepath
: full path to local file
Provide requested file as inline content through HTTP.
- Parameters
workItem
: where to store the datamime
: mime type of the datablob
: binary data bufferlength
: size of binary data buffer
Provide response as HTTP redirect.
- Parameters
workItem
: where to store the dataredirectUri
: Address where to redirect the client to.
-
bool
provideFileDirectly
(const string &uri, vector<char> &buffer, const unsigned int blockSize) = 0¶ Provide response as file contents through the connection adapters.
- Return
bool indicating whether file transfer was initiated.
- Parameters
uri
: Identifies the filebuffer
: The data to provideblockSize
: Defines in what size chunks to send the file contents
-