Uses of Interface
ratpack.handling.Chain
-
Packages that use Chain Package Description ratpack.groovy Support for writing Ratpack applications in the Groovy programming language.ratpack.groovy.handling Groovy specific extensions to classes in theratpack.handlingpackage.ratpack.groovy.test.handling ratpack.handling The handling of application requests.ratpack.server Objects used to start a ratpack application.ratpack.spring.config ratpack.test.embed Support for creating embedded applications at test time, for testing Ratpack features and extensions.ratpack.test.handling Test fixtures for exercisingHandlerimplementations without start a fullEmbeddedApp. -
-
Uses of Chain in ratpack.groovy
Methods in ratpack.groovy that return types with arguments of type Chain Modifier and Type Method Description static Action<Chain>Groovy. chain(Closure<?> closure)Creates a chain action implementation from the given closure.static Action<Chain>Groovy. chainAction(Closure<?> closure)Creates a chain action based on the given closure.Methods in ratpack.groovy with parameters of type Chain Modifier and Type Method Description static voidGroovy. chain(Chain chain, Closure<?> closure) -
Uses of Chain in ratpack.groovy.handling
Subinterfaces of Chain in ratpack.groovy.handling Modifier and Type Interface Description interfaceGroovyChainA Groovy oriented handler chain builder DSL.Classes in ratpack.groovy.handling that implement Chain Modifier and Type Class Description classGroovyChainActionA convenience super class for a standalone implementation of aAction<GroovyChain>.Methods in ratpack.groovy.handling with parameters of type Chain Modifier and Type Method Description voidGroovyChainAction. execute(Chain chain)InvokesGroovyChainAction.execute()while setting the given chain as the implicit receiver.static GroovyChainGroovyChain. from(Chain chain)Creates a Groovy chain wrapper over a chain instance.Method parameters in ratpack.groovy.handling with type arguments of type Chain Modifier and Type Method Description default GroovyChainGroovyChain. fileSystem(java.lang.String path, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. fileSystem(java.lang.String path, Action<? super Chain> action)Adds a handler to this chain that changes theFileSystemBindingfor the given handler chain.default GroovyChainGroovyChain. host(java.lang.String hostName, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. host(java.lang.String hostName, Action<? super Chain> action)Adds a handler to the chain that delegates to the given handler chain if the request has aHostheader that matches the given value exactly.default GroovyChainGroovyChain. insert(java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. insert(Action<? super Chain> action)Inserts the given nested handler chain.default GroovyChainGroovyChain. prefix(java.lang.String prefix, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. prefix(java.lang.String prefix, Action<? super Chain> action)Adds a handler that delegates to the given handlers if the relative path starts with the givenprefix.default GroovyChainGroovyChain. register(Action<? super RegistrySpec> registryAction, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. register(Registry registry, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. register(Registry registry, Action<? super Chain> action)Adds a handler that inserts the given handler chain with the given registry viaContext.insert(ratpack.registry.Registry, Handler...).default GroovyChainGroovyChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> action)Inlines the given chain iftestistrue.default GroovyChainGroovyChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)Inlines the appropriate chain based on the giventest.default GroovyChainGroovyChain. when(boolean test, Action<? super Chain> action)Inlines the given chain iftestistrue.default GroovyChainGroovyChain. when(boolean test, Action<? super Chain> onTrue, Action<? super Chain> onFalse)Inlines the appropriate chain based on the giventest.default GroovyChainGroovyChain. when(Closure<?> test, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. when(Closure<?> test, java.lang.Class<? extends Action<? super Chain>> ifAction, java.lang.Class<? extends Action<? super Chain>> elseAction)default GroovyChainGroovyChain. when(Closure<?> test, Action<? super Chain> chain)default GroovyChainGroovyChain. when(Closure<?> test, Action<? super Chain> ifChain, Action<? super Chain> elseChain)default GroovyChainGroovyChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> action)default GroovyChainGroovyChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)default GroovyChainGroovyChain. when(Predicate<? super Context> test, Action<? super Chain> action)default GroovyChainGroovyChain. when(Predicate<? super Context> test, Action<? super Chain> onTrue, Action<? super Chain> onFalse) -
Uses of Chain in ratpack.groovy.test.handling
Method parameters in ratpack.groovy.test.handling with type arguments of type Chain Modifier and Type Method Description static HandlingResultGroovyRequestFixture. handle(Action<? super Chain> handlers, Closure<?> closure)Unit test a chain ofhandlers. -
Uses of Chain in ratpack.handling
Methods in ratpack.handling that return Chain Modifier and Type Method Description default ChainChain. all(java.lang.Class<? extends Handler> handler)ChainChain. all(Handler handler)Adds the given handler to this.default ChainChain. delete(java.lang.Class<? extends Handler> handler)default ChainChain. delete(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. delete(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisDELETE.default ChainChain. delete(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisDELETEand thepathis at the current root.default ChainChain. files()files(Action), using the default config.default ChainChain. files(Action<? super FileHandlerSpec> config)Adds a handler that serves files from the file system.default ChainChain. fileSystem(java.lang.String path, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. fileSystem(java.lang.String path, Action<? super Chain> action)Adds a handler to this chain that changes theFileSystemBindingfor the given handler chain.default ChainChain. get(java.lang.Class<? extends Handler> handler)default ChainChain. get(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. get(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisGET.default ChainChain. get(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisGETand thepathis at the current root.default ChainChain. host(java.lang.String hostName, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. host(java.lang.String hostName, Action<? super Chain> action)Adds a handler to the chain that delegates to the given handler chain if the request has aHostheader that matches the given value exactly.default ChainChain. insert(java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. insert(Action<? super Chain> action)Inserts the given nested handler chain.default ChainChain. notFound()Raises a 404Context.clientError(int).default ChainChain. onlyIf(Predicate<? super Context> test, java.lang.Class<? extends Handler> handler)default ChainChain. onlyIf(Predicate<? super Context> test, Handler handler)Invokes the given handler only if the predicate passes.default ChainChain. options(java.lang.Class<? extends Handler> handler)default ChainChain. options(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. options(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisOPTIONS.default ChainChain. options(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisOPTIONSand thepathis at the current root.default ChainChain. patch(java.lang.Class<? extends Handler> handler)default ChainChain. patch(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. patch(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisPATCH.default ChainChain. patch(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisPATCHand thepathis at the current root.default ChainChain. path(java.lang.Class<? extends Handler> handler)default ChainChain. path(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. path(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathexactly.default ChainChain. path(Handler handler)default ChainChain. post(java.lang.Class<? extends Handler> handler)default ChainChain. post(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. post(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisPOST.default ChainChain. post(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisPOSTand thepathis at the current root.default ChainChain. prefix(java.lang.String prefix, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. prefix(java.lang.String prefix, Action<? super Chain> action)Adds a handler that delegates to the given handlers if the relative path starts with the givenprefix.default ChainChain. put(java.lang.Class<? extends Handler> handler)default ChainChain. put(java.lang.String path, java.lang.Class<? extends Handler> handler)default ChainChain. put(java.lang.String path, Handler handler)Adds a handler that delegates to the given handler if the relativepathmatches the givenpathand therequestHTTPMethodisPUT.default ChainChain. put(Handler handler)Adds a handler that delegates to the given handler if therequestHTTPMethodisPUTand thepathis at the current root.default ChainChain. redirect(int code, java.lang.String location)Sends an HTTP redirect to the specified location.default ChainChain. register(Action<? super RegistrySpec> action)Builds a new registry via the given action, then registers it viaregister(Registry).default ChainChain. register(Action<? super RegistrySpec> registryAction, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. register(Action<? super RegistrySpec> registryAction, Action<? super Chain> action)Adds a handler that inserts the given handler chain with a registry built by the given action viaContext.insert(ratpack.registry.Registry, Handler...).default ChainChain. register(Registry registry)Makes the contents of the given registry available for downstream handlers of the same nesting level.default ChainChain. register(Registry registry, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. register(Registry registry, Action<? super Chain> action)Adds a handler that inserts the given handler chain with the given registry viaContext.insert(ratpack.registry.Registry, Handler...).default ChainChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> action)Inlines the given chain iftestistrue.default ChainChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)Inlines the appropriate chain based on the giventest.default ChainChain. when(boolean test, Action<? super Chain> action)Inlines the given chain iftestistrue.default ChainChain. when(boolean test, Action<? super Chain> onTrue, Action<? super Chain> onFalse)Inlines the appropriate chain based on the giventest.default ChainChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)default ChainChain. when(Predicate<? super Context> test, Action<? super Chain> action)default ChainChain. when(Predicate<? super Context> test, Action<? super Chain> onTrue, Action<? super Chain> onFalse)Method parameters in ratpack.handling with type arguments of type Chain Modifier and Type Method Description default HandlerChain. chain(java.lang.Class<? extends Action<? super Chain>> action)default HandlerChain. chain(Action<? super Chain> action)Constructs a handler using the given action to define a chain.static HandlerHandlers. chain(Registry registry, Action<? super Chain> action)Builds a chain, backed by the given registry.static HandlerHandlers. chain(ServerConfig serverConfig, Action<? super Chain> action)Builds a handler chain, with no backing registry.static HandlerHandlers. chain(ServerConfig serverConfig, Registry registry, Action<? super Chain> action)Builds a chain, backed by the given registry.default ChainChain. fileSystem(java.lang.String path, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. fileSystem(java.lang.String path, Action<? super Chain> action)Adds a handler to this chain that changes theFileSystemBindingfor the given handler chain.default ChainChain. host(java.lang.String hostName, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. host(java.lang.String hostName, Action<? super Chain> action)Adds a handler to the chain that delegates to the given handler chain if the request has aHostheader that matches the given value exactly.default ChainChain. insert(java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. insert(Action<? super Chain> action)Inserts the given nested handler chain.default ChainChain. prefix(java.lang.String prefix, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. prefix(java.lang.String prefix, Action<? super Chain> action)Adds a handler that delegates to the given handlers if the relative path starts with the givenprefix.static HandlerDecoratorHandlerDecorator. prependHandlers(java.lang.Class<? extends Action<? super Chain>> handlers)A factory for decorator impls that effectively inserts the given chain before the “rest” of the handlers.static HandlerDecoratorHandlerDecorator. prependHandlers(Action<? super Chain> handlers)A factory for decorator impls that effectively inserts the given chain before the “rest” of the handlers.default ChainChain. register(Action<? super RegistrySpec> registryAction, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. register(Registry registry, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. register(Registry registry, Action<? super Chain> action)Adds a handler that inserts the given handler chain with the given registry viaContext.insert(ratpack.registry.Registry, Handler...).default ChainChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> action)Inlines the given chain iftestistrue.default ChainChain. when(boolean test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)Inlines the appropriate chain based on the giventest.default ChainChain. when(boolean test, Action<? super Chain> action)Inlines the given chain iftestistrue.default ChainChain. when(boolean test, Action<? super Chain> onTrue, Action<? super Chain> onFalse)Inlines the appropriate chain based on the giventest.default ChainChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> action)default ChainChain. when(Predicate<? super Context> test, java.lang.Class<? extends Action<? super Chain>> onTrue, java.lang.Class<? extends Action<? super Chain>> onFalse)default ChainChain. when(Predicate<? super Context> test, Action<? super Chain> action)default ChainChain. when(Predicate<? super Context> test, Action<? super Chain> onTrue, Action<? super Chain> onFalse) -
Uses of Chain in ratpack.server
Method parameters in ratpack.server with type arguments of type Chain Modifier and Type Method Description default RatpackServerSpecRatpackServerSpec. handlers(Action<? super Chain> handlers)Sets the root handler to the chain specified by the given action. -
Uses of Chain in ratpack.spring.config
Methods in ratpack.spring.config that return types with arguments of type Chain Modifier and Type Method Description java.util.List<Action<Chain>>RatpackServerCustomizer. getHandlers()java.util.List<Action<Chain>>RatpackServerCustomizerAdapter. getHandlers() -
Uses of Chain in ratpack.test.embed
Method parameters in ratpack.test.embed with type arguments of type Chain Modifier and Type Method Description static EmbeddedAppEmbeddedApp. fromHandlers(Action<? super Chain> action)Creates an embedded application with a default launch config (no base dir, ephemeral port) and the given handler chain. -
Uses of Chain in ratpack.test.handling
Method parameters in ratpack.test.handling with type arguments of type Chain Modifier and Type Method Description static HandlingResultRequestFixture. handle(Action<? super Chain> chainAction, Action<? super RequestFixture> requestFixtureAction)Unit test aHandlerchain.HandlingResultRequestFixture. handleChain(Action<? super Chain> chainAction)Similar toRequestFixture.handle(Handler), but for testing a handler chain.
-