Package org.beryx.textio.web
Class SparkTextIoApp
- java.lang.Object
-
- org.beryx.textio.web.SparkTextIoApp
-
- All Implemented Interfaces:
TextIoApp<SparkTextIoApp>
public class SparkTextIoApp extends java.lang.Object implements TextIoApp<SparkTextIoApp>
-
-
Constructor Summary
Constructors Constructor Description SparkTextIoApp(java.util.function.BiConsumer<TextIO,RunnerData> textIoRunner, WebTextTerminal termTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WebTextTerminal
create(SparkDataServer.SessionHolder sessionHolder, java.lang.String initData)
protected WebTextTerminal
get(SparkDataServer.SessionHolder sessionHolder)
int
getPort()
SparkDataServer
getServer()
void
init()
SparkTextIoApp
withMaxInactiveSeconds(java.lang.Integer maxInactiveSeconds)
SparkTextIoApp
withOnAbort(java.util.function.Consumer<java.lang.String> onAbort)
SparkTextIoApp
withOnDispose(java.util.function.Consumer<java.lang.String> onDispose)
SparkTextIoApp
withPort(java.lang.Integer portNumber)
SparkTextIoApp
withSessionDataProvider(java.util.function.Function<spark.Session,java.util.Map<java.lang.String,java.lang.String>> provider)
SparkTextIoApp
withStaticFilesLocation(java.lang.String location)
-
-
-
Constructor Detail
-
SparkTextIoApp
public SparkTextIoApp(java.util.function.BiConsumer<TextIO,RunnerData> textIoRunner, WebTextTerminal termTemplate)
-
-
Method Detail
-
getServer
public SparkDataServer getServer()
-
init
public void init()
- Specified by:
init
in interfaceTextIoApp<SparkTextIoApp>
-
withOnDispose
public SparkTextIoApp withOnDispose(java.util.function.Consumer<java.lang.String> onDispose)
- Specified by:
withOnDispose
in interfaceTextIoApp<SparkTextIoApp>
-
withOnAbort
public SparkTextIoApp withOnAbort(java.util.function.Consumer<java.lang.String> onAbort)
- Specified by:
withOnAbort
in interfaceTextIoApp<SparkTextIoApp>
-
withMaxInactiveSeconds
public SparkTextIoApp withMaxInactiveSeconds(java.lang.Integer maxInactiveSeconds)
- Specified by:
withMaxInactiveSeconds
in interfaceTextIoApp<SparkTextIoApp>
-
withStaticFilesLocation
public SparkTextIoApp withStaticFilesLocation(java.lang.String location)
- Specified by:
withStaticFilesLocation
in interfaceTextIoApp<SparkTextIoApp>
-
withPort
public SparkTextIoApp withPort(java.lang.Integer portNumber)
- Specified by:
withPort
in interfaceTextIoApp<SparkTextIoApp>
-
getPort
public int getPort()
- Specified by:
getPort
in interfaceTextIoApp<SparkTextIoApp>
-
withSessionDataProvider
public SparkTextIoApp withSessionDataProvider(java.util.function.Function<spark.Session,java.util.Map<java.lang.String,java.lang.String>> provider)
-
create
protected WebTextTerminal create(SparkDataServer.SessionHolder sessionHolder, java.lang.String initData)
-
get
protected WebTextTerminal get(SparkDataServer.SessionHolder sessionHolder)
-
-