@ConditionalOnProperty(prefix="eu.eventstorm.batch",
name="type",
havingValue="DATABASE")
@RestController
public final class DatabaseResourceReactiveController
extends Object
| Constructor and Description |
|---|
DatabaseResourceReactiveController(eu.eventstorm.sql.Database database) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
download(String uuid,
org.springframework.http.server.reactive.ServerHttpResponse response) |
reactor.core.publisher.Mono<eu.eventstorm.batch.rest.UploadResponse> |
upload(org.springframework.http.server.reactive.ServerHttpRequest serverRequest) |
public DatabaseResourceReactiveController(eu.eventstorm.sql.Database database)
@PostMapping(path="${eu.eventstorm.batch.resource.context-path:}/upload")
public reactor.core.publisher.Mono<eu.eventstorm.batch.rest.UploadResponse> upload(org.springframework.http.server.reactive.ServerHttpRequest serverRequest)
throws IOException
IOException@GetMapping(path="${eu.eventstorm.batch.resource.context-path:}/download/{uuid}")
public reactor.core.publisher.Mono<Void> download(@PathVariable(value="uuid")
String uuid,
org.springframework.http.server.reactive.ServerHttpResponse response)
throws IOException
IOExceptionCopyright © 2020. All rights reserved.