public class RatpackTextIoApp extends Object implements TextIoApp<RatpackTextIoApp>
| Constructor and Description |
|---|
RatpackTextIoApp(BiConsumer<TextIO,RunnerData> textIoRunner,
WebTextTerminal termTemplate) |
| Modifier and Type | Method and Description |
|---|---|
protected DataApi |
create(RatpackDataServer.ContextHolder ctxHolder,
String initData) |
protected DataApi |
get(RatpackDataServer.ContextHolder ctxHolder) |
int |
getPort() |
RatpackDataServer |
getServer() |
void |
init() |
RatpackTextIoApp |
withMaxInactiveSeconds(Integer maxInactiveSeconds) |
RatpackTextIoApp |
withOnAbort(Consumer<String> onAbort) |
RatpackTextIoApp |
withOnDispose(Consumer<String> onDispose) |
RatpackTextIoApp |
withPort(Integer portNumber) |
RatpackTextIoApp |
withSessionDataProvider(Function<ratpack.session.Session,Map<String,String>> provider) |
RatpackTextIoApp |
withStaticFilesLocation(String location) |
public RatpackTextIoApp(BiConsumer<TextIO,RunnerData> textIoRunner, WebTextTerminal termTemplate)
public RatpackDataServer getServer()
public void init()
init in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withOnDispose(Consumer<String> onDispose)
withOnDispose in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withOnAbort(Consumer<String> onAbort)
withOnAbort in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withMaxInactiveSeconds(Integer maxInactiveSeconds)
withMaxInactiveSeconds in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withStaticFilesLocation(String location)
withStaticFilesLocation in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withPort(Integer portNumber)
withPort in interface TextIoApp<RatpackTextIoApp>public int getPort()
getPort in interface TextIoApp<RatpackTextIoApp>public RatpackTextIoApp withSessionDataProvider(Function<ratpack.session.Session,Map<String,String>> provider)
protected DataApi create(RatpackDataServer.ContextHolder ctxHolder, String initData)
protected DataApi get(RatpackDataServer.ContextHolder ctxHolder)