Class BasicFileUploadService
java.lang.Object
com.levigo.jadice.web.demo.common.server.service.BasicFileUploadService
Service, handling split Uploads
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
getInputStream
(String uuid) Returns theInputStream
for the given uuid.long
Returns the size of the document identified by the given uuid.void
void
-
Constructor Details
-
BasicFileUploadService
public BasicFileUploadService() -
BasicFileUploadService
-
-
Method Details
-
onShutdown
@PreDestroy public void onShutdown() -
getInputStream
Returns theInputStream
for the given uuid. If no InputStream is contained an IllegalStateException is thrown.- Parameters:
uuid
- the uuid for the document- Returns:
- the
InputStream
-
getSize
Returns the size of the document identified by the given uuid. If nothing is contained for the uuid an IllegalStateException is thrown.- Parameters:
uuid
- the uuid for the document- Returns:
- the
InputStream
-
prepareUpload
-
upload
- Throws:
IOException
-
finish
-
cancel
-