Class FileDownloadController
- java.lang.Object
-
- com.aquima.web.api.controller.v2.AbstractBaseController
-
- com.aquima.web.components.filedownload.controller.v2.FileDownloadController
-
@RestController("v2ApiFileDownloadController") @RequestMapping(path="/api/v2") @ServerContext public class FileDownloadController extends AbstractBaseController
- Since:
- 11.0
-
-
Constructor Summary
Constructors Constructor Description FileDownloadController(FileDownloadService contentDownloadService, SessionService sessionService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkAuthorization(com.blueriq.component.api.IAquimaSession session, String configurationId, javax.servlet.http.HttpServletResponse httpResponse)
void
get(com.blueriq.component.api.IAquimaSession session, String configurationId, javax.servlet.http.HttpServletResponse httpResponse)
-
Methods inherited from class com.aquima.web.api.controller.v2.AbstractBaseController
clientParametersException, handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleForbiddenException, handleFunctionParameterException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownDecisionTreeException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnknownSubscriptionException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
-
-
-
Constructor Detail
-
FileDownloadController
@Autowired public FileDownloadController(FileDownloadService contentDownloadService, SessionService sessionService)
-
-
Method Detail
-
get
@SendRedirectUponException @GetMapping("/session/{sessionId}/file/{configurationId}/download") public void get(@PathVariable("sessionId") com.blueriq.component.api.IAquimaSession session, @PathVariable("configurationId") String configurationId, javax.servlet.http.HttpServletResponse httpResponse) throws IOException
- Throws:
IOException
-
checkAuthorization
@GetMapping("/session/{sessionId}/file/{configurationId}/checkauthorization") public void checkAuthorization(@PathVariable("sessionId") com.blueriq.component.api.IAquimaSession session, @PathVariable("configurationId") String configurationId, javax.servlet.http.HttpServletResponse httpResponse) throws IOException
- Throws:
IOException
-
-