6#include <ifile/IFileNameParam.h>
7#include <ilog/TLoggerCompWrap.h>
10#include <imtrest/IBinaryDataProvider.h>
11#include <imtrest/CHttpServletCompBase.h>
24 typedef CHttpServletCompBase BaseClass;
27 I_ASSIGN(m_fileIdCommandParamAttrPtr,
"FileIdCommandParam",
"The command param for data providers",
true,
"FileId");
28 I_ASSIGN(m_limitIdCommandParamAttrPtr,
"LimitIdCommandParam",
"Defines maximum size of data to be read",
true,
"Limit");
29 I_ASSIGN(m_offsetIdCommandParamAttrPtr,
"OffsetIdCommandParam",
"Defines the position to start reading data",
true,
"Offset");
30 I_ASSIGN_MULTI_0(m_binaryDataProvidersCompPtr,
"BinaryDataProviders",
"Binary data providers",
true);
33 QByteArray GetMimeType(QByteArray fileSuffix)
const;
36 virtual ConstResponsePtr OnGet(
37 const QByteArray& commandId,
38 const imtrest::IRequest::CommandParams& commandParams,
39 const HeadersMap& headers,
40 const imtrest::CHttpRequest& request)
const override;
43 I_ATTR(QString, m_fileIdCommandParamAttrPtr);
44 I_ATTR(QString, m_limitIdCommandParamAttrPtr);
45 I_ATTR(QString, m_offsetIdCommandParamAttrPtr);
49 QByteArray m_beginOfMessage;
50 QByteArray m_endOfMessage;
The CHttpFileProviderBasedServletComp class generates HTML-document with list of objects for all the ...
The IBinaryDataProvider class provides file from disc, resources or memory.