public class StaticAnalysisServer extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ALPHA |
static Classifier |
DEFAULT_CLASSIFIER |
static double |
DEFAULT_GRANULARITY |
static int |
DEFAULT_N |
Constructor and Description |
---|
StaticAnalysisServer(int port) |
Modifier and Type | Method and Description |
---|---|
static void |
analyzeRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
close() |
static String |
getHostName() |
static <K,V> V |
getOrElse(Map<K,V> map,
K key,
V fallback) |
int |
getPort() |
String |
getURL() |
static void |
main(String[] args) |
static Survey |
parseCSV(javax.servlet.http.HttpServletRequest request) |
static Survey |
parseJSON(javax.servlet.http.HttpServletRequest request) |
static Map<String,String> |
parseQueryParams(javax.servlet.http.HttpServletRequest request) |
void |
startServer() |
public static Classifier DEFAULT_CLASSIFIER
public static int DEFAULT_N
public static double DEFAULT_GRANULARITY
public static double DEFAULT_ALPHA
public int getPort()
public static String getHostName()
public String getURL()
public static void analyzeRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, SurveyException
IOException
SurveyException
public static <K,V> V getOrElse(Map<K,V> map, K key, V fallback)
public static Map<String,String> parseQueryParams(javax.servlet.http.HttpServletRequest request)
public static Survey parseCSV(javax.servlet.http.HttpServletRequest request) throws IOException, SurveyException
IOException
SurveyException
public static Survey parseJSON(javax.servlet.http.HttpServletRequest request) throws IOException, SurveyException
IOException
SurveyException
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2015. All rights reserved.