public class RatpackTextIoApp extends Object implements TextIoApp<RatpackTextIoApp>
Constructor and Description |
---|
RatpackTextIoApp(BiConsumer<TextIO,String> textIoRunner,
WebTextTerminal termTemplate) |
Modifier and Type | Method and Description |
---|---|
protected DataApi |
create(String textTermSessionId,
String initData) |
protected DataApi |
get(String textTermSessionId) |
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 |
withStaticFilesLocation(String location) |
public RatpackTextIoApp(BiConsumer<TextIO,String> 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>