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