Modifier and Type | Field and Description |
---|---|
String |
DEFAULT_PATH_FOR_GET_DATA |
String |
DEFAULT_PATH_FOR_POST_INPUT |
Constructor and Description |
---|
SparkDataServer(Function<String,DataApi> dataApiProvider) |
Modifier and Type | Method and Description |
---|---|
protected static String |
getId(spark.Request request) |
int |
getPort() |
void |
init() |
SparkDataServer |
withPathForGetData(String pathForGetData) |
SparkDataServer |
withPathForPostInput(String pathForPostInput) |
SparkDataServer |
withPort(int portNumber) |
public final String DEFAULT_PATH_FOR_GET_DATA
public final String DEFAULT_PATH_FOR_POST_INPUT
public SparkDataServer withPathForGetData(String pathForGetData)
public SparkDataServer withPathForPostInput(String pathForPostInput)
public SparkDataServer withPort(int portNumber)
public int getPort()
protected static String getId(spark.Request request)
public void init()