Class FileUploadController
java.lang.Object
com.aquima.web.api.controller.v1.AbstractBaseController
com.aquima.web.components.fileupload.controller.v1.FileUploadController
@RestController("apiFileUploadController")
@RequestMapping(path="/api/v1",
produces="application/json")
@ServerContext
public class FileUploadController
extends AbstractBaseController
Controller for uploading files with the AQ_File_Upload container
- Since:
- 9.3
- Author:
- N. van Noorloos, T. Middeldorp
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadController
(SessionService sessionService, FileUploadService uploadService, SessionListener sessionListener, IRuntimeKeyMapper runtimeKeyMapper) -
Method Summary
Modifier and TypeMethodDescriptionhandleJson
(com.blueriq.component.api.IAquimaSession rootSession, com.blueriq.component.api.IAquimaSession currentSession, String configurationId, org.springframework.web.multipart.MultipartHttpServletRequest request) Method to handle (multiple) files for uploading with a JSON response.Methods inherited from class com.aquima.web.api.controller.v1.AbstractBaseController
handleConversionException, handleDecisionTreeNotExposedException, handleEmptySymptomException, handleFlowEndedException, handleForbiddenException, handleFunctionParameterException, handleFunctionValidationException, handleFunctionValidationException, handleMethodArgumentTypeMismatchException, handleRequestWardException, handleStartApplicationForbiddenException, handleStartFlowForbiddenException, handleStartShortcutForbiddenException, handleUnauthorizedException, handleUnknownApplicationException, handleUnknownDecisionTreeException, handleUnknownFlowException, handleUnknownFunctionFlowException, handleUnknownLanguageException, handleUnknownModuleException, handleUnknownSessionException, handleUnknownShortcutException, handleUnknownSubscriptionException, handleUnsupportedOpenApiSpecException, isAuthenticated
-
Constructor Details
-
FileUploadController
@Autowired public FileUploadController(SessionService sessionService, FileUploadService uploadService, SessionListener sessionListener, IRuntimeKeyMapper runtimeKeyMapper)
-
-
Method Details
-
handleJson
@PostMapping("/subscription/{subscriptionId}/session/{sessionId}/file/{configurationId}/upload") public EventResponse handleJson(@PathVariable("subscriptionId") com.blueriq.component.api.IAquimaSession rootSession, @PathVariable("sessionId") com.blueriq.component.api.IAquimaSession currentSession, @PathVariable String configurationId, org.springframework.web.multipart.MultipartHttpServletRequest request) Method to handle (multiple) files for uploading with a JSON response.- Parameters:
request
- The HTTP request to handle.rootSession
- The root session.currentSession
- The current session.configurationId
- The id of the configuration that is stored on the page scope.- Returns:
EventResponse
which contains all events that might have been occurred, will be serialized as JSON.
-