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übersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic String
downloadFile
(spark.Request request, spark.Response response) Download a file given a cloud provider and a path.static void
static String
preprocessCas
(spark.Request request, spark.Response response) static String
uploadFile
(spark.Request request, spark.Response response) Upload one or multiple files to the specified UPLOAD_DIRECTORY path in the config file.
-
Felddetails
-
config
-
-
Konstruktordetails
-
Main
public Main()
-
-
Methodendetails
-
main
-
uploadFile
public 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
-
downloadFile
Download a file given a cloud provider and a path.- Gibt zurück:
- a response containing the file content as bytes.
-