Klasse Main

java.lang.Object
org.texttechnologylab.duui.api.Main

public class Main extends Object
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
    Modifizierer und Typ
    Feld
    Beschreibung
    static Config
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static String
    downloadFile(spark.Request request, spark.Response response)
    Download a file given a cloud provider and a path.
    static void
    main(String[] args)
     
    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.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • config

      public static Config config
  • Konstruktordetails

    • Main

      public Main()
  • Methodendetails

    • main

      public static void main(String[] args)
    • 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

      public static String preprocessCas(spark.Request request, spark.Response response)
    • downloadFile

      public static String downloadFile(spark.Request request, spark.Response response)
      Download a file given a cloud provider and a path.
      Gibt zurück:
      a response containing the file content as bytes.