Class GeneralDownloadExecutor
java.lang.Object
com.kingsrook.qqq.middleware.javalin.executors.AbstractMiddlewareExecutor<GeneralDownloadInput,GeneralDownloadOutputInterface>
com.kingsrook.qqq.middleware.javalin.executors.GeneralDownloadExecutor
public class GeneralDownloadExecutor
extends AbstractMiddlewareExecutor<GeneralDownloadInput,GeneralDownloadOutputInterface>
Executor for the general file download endpoint. Resolves a file from
server-side temp storage (either filesystem path or storage table reference)
and provides the content for download.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(GeneralDownloadInput input, GeneralDownloadOutputInterface output) Serve a file a process made available for download, exactly as the legacy download route does: a server file only when this session was granted it (ProcessFileDownload), a storage file only when its table and reference were registered for this session.
-
Constructor Details
-
GeneralDownloadExecutor
public GeneralDownloadExecutor()
-
-
Method Details
-
execute
public void execute(GeneralDownloadInput input, GeneralDownloadOutputInterface output) throws QException Serve a file a process made available for download, exactly as the legacy download route does: a server file only when this session was granted it (ProcessFileDownload), a storage file only when its table and reference were registered for this session.- Specified by:
executein classAbstractMiddlewareExecutor<GeneralDownloadInput,GeneralDownloadOutputInterface> - Throws:
QException
-