Package org.texttechnologylab.duui.api
Klasse Main
java.lang.Object
org.texttechnologylab.duui.api.Main
The entry point to the DUUIRestService application. Running the application requires the path to
 a config file to be specified in the command line arguments.
- Autor:
- Cedric Borkowski
- 
FeldübersichtFelder
- 
KonstruktorübersichtKonstruktoren
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungstatic StringdownloadFile(spark.Request request, spark.Response response) Download a file given a cloud provider and a path.static voidstatic StringpreprocessCas(spark.Request request, spark.Response response) static StringuploadFile(spark.Request request, spark.Response response) Upload one or multiple files to the specified UPLOAD_DIRECTORY path in the config file.
- 
Felddetails- 
config
 
- 
- 
Konstruktordetails- 
Mainpublic Main()
 
- 
- 
Methodendetails- 
main
- 
uploadFilepublic static String uploadFile(spark.Request request, spark.Response response) throws javax.servlet.ServletException, IOException, com.dropbox.core.DbxException, GeneralSecurityException Upload one or multiple files to the specified UPLOAD_DIRECTORY path in the config file. Files are stored under UPLOAD_DIRECTORY/uuid- Gibt zurück:
- a JSON Document containing the path to parent folder (uuid).
- Löst aus:
- javax.servlet.ServletException
- IOException
- com.dropbox.core.DbxException
- GeneralSecurityException
 
- 
preprocessCas
- 
downloadFileDownload a file given a cloud provider and a path.- Gibt zurück:
- a response containing the file content as bytes.
 
 
-