Uses of Interface
ratpack.core.server.RatpackServerSpec
-
Packages that use RatpackServerSpec Package Description ratpack.core.server Objects used to start a ratpack application.ratpack.groovy Support for writing Ratpack applications in the Groovy programming language.ratpack.groovy.server Groovy implementations of the Ratpack server building classes.ratpack.test.embed Support for creating embedded applications at test time, for testing Ratpack features and extensions. -
-
Uses of RatpackServerSpec in ratpack.core.server
Methods in ratpack.core.server that return RatpackServerSpec Modifier and Type Method Description default RatpackServerSpecRatpackServerSpec. handler(Class<? extends Handler> handlerType)Sets the root handler by getting a handler of the given type from the server registry.RatpackServerSpecRatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)Sets the root handler to the return of the given function.default RatpackServerSpecRatpackServerSpec. handlers(Action<? super Chain> handlers)Sets the root handler to the chain specified by the given action.default RatpackServerSpecRatpackServerSpec. registry(Registry registry)Sets the user registry to exactly the given registry.RatpackServerSpecRatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)Sets the user registry as the return value of the given function.default RatpackServerSpecRatpackServerSpec. registryOf(Action<? super RegistrySpec> action)Builds the user registry via the given spec action.RatpackServerSpecRatpackServerSpec. serverConfig(ServerConfig serverConfig)Sets the server configuration for the application.default RatpackServerSpecRatpackServerSpec. serverConfig(ServerConfigBuilder builder)Convenience function thatbuildsthe config from the given builder and delegates toserverConfig(ServerConfig).default RatpackServerSpecRatpackServerSpec. serverConfig(Action<? super ServerConfigBuilder> action)Method parameters in ratpack.core.server with type arguments of type RatpackServerSpec Modifier and Type Method Description static RatpackServerRatpackServer. of(Action<? super RatpackServerSpec> definition)Creates a new, unstarted, Ratpack server from the given definition.static RatpackServerRatpackServer. start(Action<? super RatpackServerSpec> definition)Convenience method todefineandRatpackServer.start()the server in one go. -
Uses of RatpackServerSpec in ratpack.groovy
Methods in ratpack.groovy that return types with arguments of type RatpackServerSpec Modifier and Type Method Description static Action<? super RatpackServerSpec>Groovy.Script. app()Creates an application defining action from a Groovy script named "ratpack.groovy".static Action<? super RatpackServerSpec>Groovy.Script. app(boolean compileStatic)Creates an application defining action from a Groovy script named "ratpack.groovy".static Action<? super RatpackServerSpec>Groovy.Script. app(boolean compileStatic, String... scriptPaths)Creates an application defining action from a Groovy script.static Action<? super RatpackServerSpec>Groovy.Script. app(boolean compileStatic, Path script)Creates an application defining action from a Groovy script.static Action<? super RatpackServerSpec>Groovy.Script. app(Path script)Creates an application defining action from a Groovy script.static Action<? super RatpackServerSpec>Groovy.Script. appWithArgs(boolean compileStatic, String[] scriptPaths, String... args)Creates an application defining action from a Groovy script.static Action<? super RatpackServerSpec>Groovy.Script. appWithArgs(boolean compileStatic, Path script, String... args)Creates an application defining action from a Groovy script.static Action<? super RatpackServerSpec>Groovy.Script. appWithArgs(String... args)Creates an application defining action from a Groovy script named "ratpack.groovy". -
Uses of RatpackServerSpec in ratpack.groovy.server
Subinterfaces of RatpackServerSpec in ratpack.groovy.server Modifier and Type Interface Description interfaceGroovyRatpackServerSpecMethods in ratpack.groovy.server with parameters of type RatpackServerSpec Modifier and Type Method Description static GroovyRatpackServerSpecGroovyRatpackServerSpec. from(RatpackServerSpec spec) -
Uses of RatpackServerSpec in ratpack.test.embed
Method parameters in ratpack.test.embed with type arguments of type RatpackServerSpec Modifier and Type Method Description static EmbeddedAppEmbeddedApp. fromServer(ServerConfigBuilder serverConfig, Action<? super RatpackServerSpec> definition)Creates an embedded application using the given server config, and server creating function.static EmbeddedAppEmbeddedApp. fromServer(ServerConfig serverConfig, Action<? super RatpackServerSpec> definition)Creates an embedded application using the given server config, and server creating function.static EmbeddedAppEmbeddedApp. of(Action<? super RatpackServerSpec> definition)Creates an embedded application from the given function.
-