public AcceptsFileUpload
A service that implements AcceptsFileUpload can have new binary data provided to it via an HTTP upload.
TODO: In future, also accept uploads over the MQ interface too.
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAcceptableFileExtensions()
What file extensions are acceptable for the file to be handed to upload()
|
java.lang.String |
getDataTypePrefix()
A string that prefixes the URLs, e.g. "attachments" or "interest-rates". Should be OK for URLs.
|
java.lang.String |
upload(java.io.InputStream data)
Accepts the data in the given input stream, and returns some sort of useful return message that will be sent
back to the user in the response.
|
java.lang.String getDataTypePrefix()
A string that prefixes the URLs, e.g. "attachments" or "interest-rates". Should be OK for URLs.
java.util.List<java.lang.String> getAcceptableFileExtensions()
What file extensions are acceptable for the file to be handed to upload()
java.lang.String upload(java.io.InputStream data)
Accepts the data in the given input stream, and returns some sort of useful return message that will be sent back to the user in the response.