java.lang.Object
de.uni_mannheim.informatik.dws.melt.receiver_http.Main

public class Main extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • LOCATION

      private static final File LOCATION
    • MULTIPART

      private static final String MULTIPART
      See Also:
    • random

      private static final SecureRandom random
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception
    • sendFileContent

      private static void sendFileContent(URL url, javax.servlet.http.HttpServletResponse response)
    • runTool

      private static URL runTool(URL source, URL target, URL inputAlignment, URL parameters) throws javax.servlet.ServletException
      Throws:
      javax.servlet.ServletException
    • getQoSFilter

      private static org.eclipse.jetty.servlet.FilterHolder getQoSFilter(int maxRequests)
    • isMultipartContent

      public static final boolean isMultipartContent(javax.servlet.http.HttpServletRequest request)
      Determines whether the request contains multipart content.
      Parameters:
      request - The request to be evaluated
      Returns:
      true, if the request is multipart otherwise false
    • getHtmlCode

      private static String getHtmlCode()
    • getFile

      private static File getFile(javax.servlet.http.Part part, String prefix) throws IOException
      Throws:
      IOException
    • getFilenameExtension

      private static String getFilenameExtension(String filename, String defaultValue)
    • getPort

      private static int getPort()
    • getMaxParallelRequests

      private static int getMaxParallelRequests()
    • getLocation

      private static File getLocation()
    • getDefaultLocation

      private static File getDefaultLocation()