Class Main
java.lang.Object
de.uni_mannheim.informatik.dws.melt.receiver_http.Main
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static File
private static File
private static String
getFilenameExtension
(String filename, String defaultValue) private static String
private static File
private static int
private static int
getPort()
private static org.eclipse.jetty.servlet.FilterHolder
getQoSFilter
(int maxRequests) static final boolean
isMultipartContent
(javax.servlet.http.HttpServletRequest request) Determines whether the request contains multipart content.static void
private static URL
private static void
sendFileContent
(URL url, javax.servlet.http.HttpServletResponse response)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
LOCATION
-
MULTIPART
- See Also:
-
random
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
- Throws:
Exception
-
sendFileContent
-
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
-
getFile
- Throws:
IOException
-
getFilenameExtension
-
getPort
private static int getPort() -
getMaxParallelRequests
private static int getMaxParallelRequests() -
getLocation
-
getDefaultLocation
-