public class SparkTextIoApp extends Object implements TextIoApp<SparkTextIoApp>
Constructor and Description |
---|
SparkTextIoApp(BiConsumer<TextIO,String> textIoRunner,
WebTextTerminal termTemplate) |
Modifier and Type | Method and Description |
---|---|
protected WebTextTerminal |
create(SparkDataServer.SessionHolder sessionHolder,
String initData) |
protected WebTextTerminal |
get(SparkDataServer.SessionHolder sessionHolder) |
int |
getPort() |
SparkDataServer |
getServer() |
void |
init() |
SparkTextIoApp |
withMaxInactiveSeconds(Integer maxInactiveSeconds) |
SparkTextIoApp |
withOnAbort(Consumer<String> onAbort) |
SparkTextIoApp |
withOnDispose(Consumer<String> onDispose) |
SparkTextIoApp |
withPort(Integer portNumber) |
SparkTextIoApp |
withStaticFilesLocation(String location) |
public SparkTextIoApp(BiConsumer<TextIO,String> textIoRunner, WebTextTerminal termTemplate)
public SparkDataServer getServer()
public void init()
init
in interface TextIoApp<SparkTextIoApp>
public SparkTextIoApp withOnDispose(Consumer<String> onDispose)
withOnDispose
in interface TextIoApp<SparkTextIoApp>
public SparkTextIoApp withOnAbort(Consumer<String> onAbort)
withOnAbort
in interface TextIoApp<SparkTextIoApp>
public SparkTextIoApp withMaxInactiveSeconds(Integer maxInactiveSeconds)
withMaxInactiveSeconds
in interface TextIoApp<SparkTextIoApp>
public SparkTextIoApp withStaticFilesLocation(String location)
withStaticFilesLocation
in interface TextIoApp<SparkTextIoApp>
public SparkTextIoApp withPort(Integer portNumber)
withPort
in interface TextIoApp<SparkTextIoApp>
public int getPort()
getPort
in interface TextIoApp<SparkTextIoApp>
protected WebTextTerminal create(SparkDataServer.SessionHolder sessionHolder, String initData)
protected WebTextTerminal get(SparkDataServer.SessionHolder sessionHolder)