ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
__construct (\ILIAS\HTTP\Services $http, StorableResource $resource, StreamAccess $stream_access, FileNamePolicy $file_name_policy) | |
run () | |
This runs the actual DeliveryConsumer. More... | |
![]() | |
__construct (StorableResource $resource, StreamAccess $stream_access, FileNamePolicy $file_name_policy) | |
DownloadConsumer constructor. More... | |
run () | |
This runs the actual DeliveryConsumer. More... | |
setRevisionNumber (int $revision_number) | |
overrideFileName (string $file_name) | |
Protected Member Functions | |
getDisposition () | |
Private Attributes | |
const | NON_VALID_EXTENSION_MIME = \ILIAS\FileUpload\MimeType::APPLICATION__OCTET_STREAM |
ILIAS HTTP Services | $http |
Additional Inherited Members | |
![]() | |
int | $revision_number = null |
string | $file_name = '' |
StorableResource | $resource |
StreamAccess | $stream_access |
FileNamePolicy | $file_name_policy |
Definition at line 32 of file BaseHTTPResponseBasedConsumer.php.
ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer::__construct | ( | \ILIAS\HTTP\Services | $http, |
StorableResource | $resource, | ||
StreamAccess | $stream_access, | ||
FileNamePolicy | $file_name_policy | ||
) |
Definition at line 38 of file BaseHTTPResponseBasedConsumer.php.
References ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\$http, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\getDisposition(), and ILIAS\FileDelivery\http().
|
abstractprotected |
Referenced by ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\__construct(), and ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\run().
ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer::run | ( | ) |
This runs the actual DeliveryConsumer.
E.g. a DownloadConsumer will pass the Stream of a Ressource to the HTTP-Service and download the file.
Implements ILIAS\ResourceStorage\Consumer\DeliveryConsumer.
Definition at line 50 of file BaseHTTPResponseBasedConsumer.php.
References $response, ILIAS\HTTP\Response\ResponseHeader\ACCEPT_RANGES, ILIAS\HTTP\Response\ResponseHeader\CONNECTION, ILIAS\HTTP\Response\ResponseHeader\CONTENT_DISPOSITION, ILIAS\HTTP\Response\ResponseHeader\CONTENT_TYPE, ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\getDisposition(), ILIAS\FileDelivery\http(), and ILIAS\HTTP\Response\ResponseHeader\X_CONTENT_TYPE_OPTIONS.
Definition at line 36 of file BaseHTTPResponseBasedConsumer.php.
Referenced by ILIAS\ResourceStorage\Consumer\BaseHTTPResponseBasedConsumer\__construct().
|
private |
Definition at line 35 of file BaseHTTPResponseBasedConsumer.php.