@RestController @RequestMapping(value="/inbox") public class InboxController extends Object
| Constructor and Description |
|---|
InboxController() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteFromInbox(String user,
String password,
String path)
Deletes file from users' INBOX.
|
List<String> |
listInbox(String user,
String password,
String path)
list files in users' INBOX.
|
void |
readFromInbox(String user,
String password,
String path,
javax.servlet.http.HttpServletResponse response)
Reads file from users' INBOX.
|
void |
writeToInbox(Set<String> users,
String path,
InputStream is)
Sends file to multiple users' INBOX.
|
@PutMapping(value="/{path:.*}",
consumes="application/octet-stream")
public void writeToInbox(@RequestHeader
Set<String> users,
@PathVariable
String path,
InputStream is)
@GetMapping(value="/{path:.*}",
produces="application/octet-stream")
public void readFromInbox(@RequestHeader
String user,
@RequestHeader
String password,
@PathVariable
String path,
javax.servlet.http.HttpServletResponse response)
@DeleteMapping(value="/{path:.*}")
public void deleteFromInbox(@RequestHeader
String user,
@RequestHeader
String password,
@PathVariable
String path)
Copyright © 2019. All rights reserved.