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 RatpackServerSpec
RatpackServerSpec. handler(Class<? extends Handler> handlerType)
Sets the root handler by getting a handler of the given type from the server registry.RatpackServerSpec
RatpackServerSpec. handler(Function<? super Registry,? extends Handler> handlerFactory)
Sets the root handler to the return of the given function.default RatpackServerSpec
RatpackServerSpec. handlers(Action<? super Chain> handlers)
Sets the root handler to the chain specified by the given action.default RatpackServerSpec
RatpackServerSpec. registry(Registry registry)
Sets the user registry to exactly the given registry.RatpackServerSpec
RatpackServerSpec. registry(Function<? super Registry,? extends Registry> function)
Sets the user registry as the return value of the given function.default RatpackServerSpec
RatpackServerSpec. registryOf(Action<? super RegistrySpec> action)
Builds the user registry via the given spec action.RatpackServerSpec
RatpackServerSpec. serverConfig(ServerConfig serverConfig)
Sets the server configuration for the application.default RatpackServerSpec
RatpackServerSpec. serverConfig(ServerConfigBuilder builder)
Convenience function thatbuilds
the config from the given builder and delegates toserverConfig(ServerConfig)
.default RatpackServerSpec
RatpackServerSpec. serverConfig(Action<? super ServerConfigBuilder> action)
Method parameters in ratpack.core.server with type arguments of type RatpackServerSpec Modifier and Type Method Description static RatpackServer
RatpackServer. of(Action<? super RatpackServerSpec> definition)
Creates a new, unstarted, Ratpack server from the given definition.static RatpackServer
RatpackServer. start(Action<? super RatpackServerSpec> definition)
Convenience method todefine
andRatpackServer.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 interface
GroovyRatpackServerSpec
Methods in ratpack.groovy.server with parameters of type RatpackServerSpec Modifier and Type Method Description static GroovyRatpackServerSpec
GroovyRatpackServerSpec. 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 EmbeddedApp
EmbeddedApp. fromServer(ServerConfigBuilder serverConfig, Action<? super RatpackServerSpec> definition)
Creates an embedded application using the given server config, and server creating function.static EmbeddedApp
EmbeddedApp. fromServer(ServerConfig serverConfig, Action<? super RatpackServerSpec> definition)
Creates an embedded application using the given server config, and server creating function.static EmbeddedApp
EmbeddedApp. of(Action<? super RatpackServerSpec> definition)
Creates an embedded application from the given function.
-