Class FileUploadController
- java.lang.Object
-
- com.aquima.web.api.controller.v2.AbstractBaseController
-
- com.aquima.web.components.fileupload.controller.v2.FileUploadController
-
@RestController("v2ApiFileUploadController") @RequestMapping(path="/api/v2", produces="application/json") @ServerContext public class FileUploadController extends AbstractBaseController
Controller for uploading files with the AQ_File_Upload container- Since:
- 11.0
- Author:
- N. van Noorloos, T. Middeldorp
-
-
Constructor Summary
Constructors Constructor Description FileUploadController(SessionService sessionService, FileUploadService uploadService, SessionListener sessionListener, IRuntimeKeyMapper runtimeKeyMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventResponse
handleJson(com.blueriq.component.api.IAquimaSession session, 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.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
-
FileUploadController
@Autowired public FileUploadController(SessionService sessionService, FileUploadService uploadService, SessionListener sessionListener, IRuntimeKeyMapper runtimeKeyMapper)
-
-
Method Detail
-
handleJson
@PostMapping("/session/{sessionId}/file/{configurationId}/upload") public EventResponse handleJson(@PathVariable("sessionId") com.blueriq.component.api.IAquimaSession session, @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.session
- The sessionconfigurationId
- 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.
-
-