public class RatpackTextIoApp extends Object implements TextIoApp<RatpackTextIoApp>
| Constructor and Description |
|---|
RatpackTextIoApp(Consumer<TextIO> textIoRunner,
WebTextTerminal termTemplate) |
| Modifier and Type | Method and Description |
|---|---|
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(Consumer<TextIO> 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>