- object(String, Object) - Method in interface ratpack.config.ConfigDataBuilder
-
Adds the object's fields at the given path as a configuration source.
- object(String, Object) - Method in interface ratpack.server.ServerConfigBuilder
-
Adds the object's fields at the given path as a configuration source.
- observe(Promise<T>) - Static method in class ratpack.rx.RxRatpack
-
- observe(Operation) - Static method in class ratpack.rx.RxRatpack
-
- observeEach(Promise<I>) - Static method in class ratpack.rx.RxRatpack
-
- of(Action<? super ConfigDataBuilder>) - Static method in interface ratpack.config.ConfigData
-
Builds a new config data with the default object mapper, from the given definition.
- of(ObjectMapper, Action<? super ConfigDataBuilder>) - Static method in interface ratpack.config.ConfigData
-
Builds a new config data with the specified object mapper, from the given definition.
- of(Result<T>) - Static method in interface ratpack.exec.ExecResult
-
Wraps the given result as an exec result.
- of(Block) - Static method in interface ratpack.exec.Operation
-
- of(Upstream<T>) - Static method in interface ratpack.exec.Promise
-
- of(Iterable<? extends Promise<T>>) - Static method in interface ratpack.exec.util.ParallelBatch
-
Creates a new parallel batch of the given promises.
- of(Promise<T>...) - Static method in interface ratpack.exec.util.ParallelBatch
-
Creates a new parallel batch of the given promises.
- of(Iterable<? extends Promise<T>>) - Static method in interface ratpack.exec.util.SerialBatch
-
Creates a new serial batch of the given promises.
- of(Promise<T>...) - Static method in interface ratpack.exec.util.SerialBatch
-
Creates a new serial batch of the given promises.
- of(Path) - Static method in interface ratpack.file.FileSystemBinding
-
- of(L, R) - Static method in class ratpack.func.Pair
-
Creates a new pair.
- of(Closure<?>) - Static method in interface ratpack.groovy.test.embed.GroovyEmbeddedApp
-
- of(Action<? super BindingsSpec>) - Static method in class ratpack.guice.BindingsImposition
-
Creates a new bindings imposition of the given bindings.
- of(CharSequence) - Static method in interface ratpack.handling.RequestId
-
Creates a new request ID from the given string.
- of(Action<? super RequestOutcome>) - Static method in interface ratpack.handling.RequestLogger
-
- of(String) - Static method in interface ratpack.handling.UserId
-
Creates new user identifier of the given string.
- of(String, Function<? super Registry, ? extends Promise<HealthCheck.Result>>) - Static method in interface ratpack.health.HealthCheck
-
Convenience factory for health check implementations.
- of(Action<? super HttpClientSpec>) - Static method in interface ratpack.http.client.HttpClient
-
Creates a new HTTP client.
- of(String) - Static method in interface ratpack.http.HttpMethod
-
Creates a method of the given name.
- of(int, String) - Static method in interface ratpack.http.Status
-
Creates a new status object.
- of(int) - Static method in interface ratpack.http.Status
-
Creates a new status object.
- of(boolean) - Static method in class ratpack.impose.ForceDevelopmentImposition
-
Creates a new imposition of the specified value.
- of(int) - Static method in class ratpack.impose.ForceServerListenPortImposition
-
Creates an imposition that forces the use of the specified port.
- of(Action<? super ImpositionsSpec>) - Static method in class ratpack.impose.Impositions
-
Creates an impositions instance of the given imposition objects.
- of(Consumer<? super ServerConfigBuilder>) - Static method in class ratpack.impose.ServerConfigImposition
-
Creates an override that applies the given function to the server config builder.
- of(Registry) - Static method in class ratpack.impose.UserRegistryImposition
-
Creates an imposition of the given registry.
- of(Function<? super Registry, ? extends Registry>) - Static method in class ratpack.impose.UserRegistryImposition
-
Creates an imposition of registry returned by the given function.
- of(TypeToken<T>, O) - Static method in class ratpack.parse.Parse
-
Creates a parse object.
- of(TypeToken<T>) - Static method in class ratpack.parse.Parse
-
Creates a parse object, with no options.
- of(Class<T>, O) - Static method in class ratpack.parse.Parse
-
Creates a parse object.
- of(Class<T>) - Static method in class ratpack.parse.Parse
-
Creates a parse object, with no options.
- of(boolean, Action<? super PathBinderBuilder>) - Static method in interface ratpack.path.PathBinder
-
Builds a path binder programmatically.
- of(Action<? super RegistrySpec>) - Static method in interface ratpack.registry.Registry
-
Builds a registry from the given action.
- of(Class<T>, BiFunction<? super Context, ? super T, ? extends T>) - Static method in interface ratpack.render.RenderableDecorator
-
Creates a renderable decorator implementation for the given type that uses the function as decorator.
- of(Class<T>, BiConsumer<? super Context, ? super T>) - Static method in interface ratpack.render.Renderer
-
Creates a renderer implementation from the given arguments.
- of(URI) - Static method in interface ratpack.server.PublicAddress
-
Creates a new public address object using the given URI.
- of(Action<? super RatpackServerSpec>) - Static method in interface ratpack.server.RatpackServer
-
Creates a new, unstarted, Ratpack server from the given definition.
- of(Action<? super ServerConfigBuilder>) - Static method in interface ratpack.server.ServerConfig
-
- of(Class<T>) - Static method in interface ratpack.session.SessionKey
-
Creates a key of the given type with no name.
- of(String, Class<T>) - Static method in interface ratpack.session.SessionKey
-
Creates a key of the given name and type.
- of(String) - Static method in interface ratpack.session.SessionKey
-
Creates a key of the given name with no type.
- of(HttpClient) - Static method in interface ratpack.sse.ServerSentEventStreamClient
-
Creates an SSE client.
- of(Action<? super RatpackServerSpec>) - Static method in interface ratpack.test.embed.EmbeddedApp
-
Creates an embedded application from the given function.
- of(RatpackServer) - Static method in class ratpack.test.ServerBackedApplicationUnderTest
-
Creates a new instance backed by the given server.
- of(Factory<? extends RatpackServer>) - Static method in class ratpack.test.ServerBackedApplicationUnderTest
-
Creates a new instance backed by the server returned by the given function.
- ofAsync(Class<T>, BiFunction<? super Context, ? super T, ? extends Promise<T>>) - Static method in interface ratpack.render.RenderableDecorator
-
Creates a renderable decorator implementation for the given type that uses the function as decorator.
- ofLazy(Factory<T>) - Static method in interface ratpack.exec.Promise
-
- ofSize(int) - Static method in interface ratpack.exec.Throttle
-
Create a new throttle of the given size.
- ofType(String, T) - Static method in interface ratpack.session.SessionKey
-
Creates a key of the given name, and the type of the given object (as provided by
Object.getClass()
).
- ofType(T) - Static method in interface ratpack.session.SessionKey
-
Creates a key of type of the given object (as provided by
Object.getClass()
), and no name.
- OK - Static variable in interface ratpack.http.Status
-
The 200 status code.
- on(Promise<T>) - Static method in class ratpack.exec.Blocking
-
Blocks execution waiting for this promise to complete and returns the promised value.
- onClose(Closure<?>) - Method in interface ratpack.groovy.handling.GroovyContext
-
Adds a request close handler.
- onClose(Action<? super RequestOutcome>) - Method in interface ratpack.handling.Context
-
Registers a callback to be notified when the request for this context is “closed” (i.e.
- onClose(WebSocketClose<T>) - Method in class ratpack.websocket.AutoCloseWebSocketHandler
-
- onClose(WebSocketClose<T>) - Method in interface ratpack.websocket.WebSocketHandler
-
- onClose(Action<WebSocketClose<T>>) - Method in interface ratpack.websocket.WebSocketSpec
-
- onComplete(Block) - Method in interface ratpack.exec.Downstream
-
- onComplete(Action<? super Execution>) - Method in interface ratpack.exec.ExecSpec
-
Specifies the completion callback for the execution.
- onComplete(Action<? super Execution>) - Method in interface ratpack.exec.ExecStarter
-
Specifies the completion callback for the execution.
- onComplete(AutoCloseable) - Method in interface ratpack.exec.Execution
-
Registers a closeable that will be closed when the execution completes.
- oneCookie(String) - Method in interface ratpack.http.Request
-
Returns the value of the cookie with the specified name if it was sent.
- onError(Action<? super Throwable>) - Method in interface ratpack.config.ConfigDataBuilder
-
Sets the error all that will be used for added configuration sources.
- onError(Action<? super Throwable>) - Method in interface ratpack.exec.Downstream
-
- onError(Action<? super Throwable>) - Method in interface ratpack.exec.ExecSpec
-
Specify the top level error handler for the execution.
- onError(Action<? super Throwable>) - Method in interface ratpack.exec.ExecStarter
-
Specify the top level error handler for the execution.
- onError(Action<? super Throwable>) - Method in interface ratpack.exec.Operation
-
- onError(Predicate<? super Throwable>, Action<? super Throwable>) - Method in interface ratpack.exec.Promise
-
Specifies the action to take if the an error occurs trying to produce the promised value, that the given predicate applies to.
- onError(Class<E>, Action<? super E>) - Method in interface ratpack.exec.Promise
-
Specifies the action to take if the an error of the given type occurs trying to produce the promised value.
- onError(Action<? super Throwable>) - Method in interface ratpack.exec.Promise
-
Specifies the action to take if the an error occurs trying to produce the promised value.
- onError(Action<? super Throwable>) - Method in interface ratpack.server.ServerConfigBuilder
-
Sets the error all that will be used for added configuration sources.
- onlyIf(Predicate<? super Context>, Handler) - Method in interface ratpack.groovy.handling.GroovyChain
-
Invokes the given handler only if the predicate passes.
- onlyIf(Predicate<? super Context>, Class<? extends Handler>) - Method in interface ratpack.groovy.handling.GroovyChain
- onlyIf(Predicate<? super Context>, Closure<?>) - Method in interface ratpack.groovy.handling.GroovyChain
-
- onlyIf(Closure<?>, Closure<?>) - Method in interface ratpack.groovy.handling.GroovyChain
-
- onlyIf(Closure<?>, Handler) - Method in interface ratpack.groovy.handling.GroovyChain
-
- onlyIf(Closure<?>, Class<? extends Handler>) - Method in interface ratpack.groovy.handling.GroovyChain
-
- onlyIf(Predicate<? super Context>, Handler) - Method in interface ratpack.handling.Chain
-
Invokes the given handler only if the predicate passes.
- onlyIf(Predicate<? super Context>, Class<? extends Handler>) - Method in interface ratpack.handling.Chain
-
- onlyIf(Predicate<? super Context>, Handler) - Static method in class ratpack.handling.Handlers
-
Creates a handler that delegates to the given handler if the predicate applies to the context.
- onMessage(WebSocketMessage<T>) - Method in class ratpack.websocket.AutoCloseWebSocketHandler
-
- onMessage(WebSocketMessage<T>) - Method in interface ratpack.websocket.WebSocketHandler
-
- onMessage(Action<WebSocketMessage<T>>) - Method in interface ratpack.websocket.WebSocketSpec
-
- onNull(Block) - Method in interface ratpack.exec.Promise
-
A convenience shorthand for
routing
null
values.
- onOpen(WebSocket) - Method in class ratpack.websocket.AutoCloseWebSocketHandler
-
- onOpen(WebSocket) - Method in interface ratpack.websocket.WebSocketHandler
-
- onRedirect(Function<? super ReceivedResponse, Action<? super RequestSpec>>) - Method in interface ratpack.http.client.RequestSpec
-
Specifies a function to invoke when a redirectable response is received.
- onStart(Action<? super Execution>) - Method in interface ratpack.exec.ExecSpec
-
Specifies an action to be taken just before the execution starts.
- onStart(Action<? super Execution>) - Method in interface ratpack.exec.ExecStarter
-
Specifies an action to be taken just before the execution starts.
- onStart(StartEvent) - Method in interface ratpack.server.Service
-
Deprecated.
- onStart(StartEvent) - Method in interface ratpack.service.Service
-
Server startup event.
- onStop(StopEvent) - Method in class ratpack.hikari.HikariService
-
- onStop(StopEvent) - Method in interface ratpack.server.Service
-
Deprecated.
- onStop(StopEvent) - Method in interface ratpack.service.Service
-
Server stop event.
- onSuccess(Action<? super O>) - Method in interface ratpack.exec.Downstream
-
- onYield(Runnable) - Method in interface ratpack.exec.Promise
-
Registers a listener that is invoked when this
promise is initiated.
- op(Block) - Static method in class ratpack.exec.Blocking
-
- Operation - Interface in ratpack.exec
-
A logical operation.
- operation() - Method in interface ratpack.exec.Promise
-
- operation(Action<? super T>) - Method in interface ratpack.exec.Promise
-
- operation() - Method in interface ratpack.func.Block
-
- optionalToken(String) - Method in interface ratpack.path.PathBinderBuilder
-
Add an optional token to the path.
- optionalTokenWithPattern(String, String) - Method in interface ratpack.path.PathBinderBuilder
-
Add a regular expression parameterized named optional token to the path.
- options(String, Handler) - Method in interface ratpack.groovy.handling.GroovyChain
-
Adds a handler that delegates to the given handler if
the relative path
matches the given path
and the request
HTTPMethod
is OPTIONS
.
- options(String, Class<? extends Handler>) - Method in interface ratpack.groovy.handling.GroovyChain
- options(Handler) - Method in interface ratpack.groovy.handling.GroovyChain
-
Adds a handler that delegates to the given handler if
the request
HTTPMethod
is OPTIONS
and the path
is at the current root.
- options(Class<? extends Handler>) - Method in interface ratpack.groovy.handling.GroovyChain
- options(String, Closure<?>) - Method in interface ratpack.groovy.handling.GroovyChain
-
Adds a Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the
relative path
matches the given path
and the request
HTTPMethod
is OPTIONS
.
- options(Closure<?>) - Method in interface ratpack.groovy.handling.GroovyChain
-
Adds a Handler
to this GroovyChain
that delegates to the given Closure
as a Handler
if the request
HTTPMethod
is OPTIONS
and the path
is at the current root.
- options(Block) - Method in interface ratpack.handling.ByMethodSpec
-
Defines the action to to take if the request has a HTTP method of OPTIONS.
- options(String, Handler) - Method in interface ratpack.handling.Chain
-
Adds a handler that delegates to the given handler if
the relative path
matches the given path
and the request
HTTPMethod
is OPTIONS
.
- options(String, Class<? extends Handler>) - Method in interface ratpack.handling.Chain
-
- options(Handler) - Method in interface ratpack.handling.Chain
-
Adds a handler that delegates to the given handler if
the request
HTTPMethod
is OPTIONS
and the path
is at the current root.
- options(Class<? extends Handler>) - Method in interface ratpack.handling.Chain
-
- options() - Static method in class ratpack.handling.Handlers
-
A handler that delegates to the next handler if the request is OPTIONS, otherwise raises a 405 client error.
- options() - Method in interface ratpack.http.client.RequestSpec
-
Specifies to use the OPTIONS request method.
- OPTIONS - Static variable in interface ratpack.http.HttpMethod
-
The OPTIONS method.
- options() - Method in interface ratpack.test.http.TestHttpClient
-
Make a OPTIONS request with a path of "" this is the same as calling options("").
- options(String) - Method in interface ratpack.test.http.TestHttpClient
-
Make a OPTIONS request to the specified path.
- optionsText() - Method in interface ratpack.test.http.TestHttpClient
-
- optionsText(String) - Method in interface ratpack.test.http.TestHttpClient
-
- OverlappingExecutionException - Exception in ratpack.exec
-
An instance of this exception will be logged when execution overlaps.
- OverlappingExecutionException(String) - Constructor for exception ratpack.exec.OverlappingExecutionException
-
Constructor.
- OverlappingExecutionException(String, Throwable) - Constructor for exception ratpack.exec.OverlappingExecutionException
-
Constructor.