Uses of Interface
ratpack.func.Block
-
Packages that use Block Package Description ratpack.core.handling The handling of application requests.ratpack.core.http The HTTP protocol.ratpack.core.logging Utility classes for integration Ratpack with various logging frameworks.ratpack.exec The execution management.ratpack.func ratpack.groovy.handling Groovy specific extensions to classes in theratpack.core.handling
package. -
-
Uses of Block in ratpack.core.handling
Methods in ratpack.core.handling with parameters of type Block Modifier and Type Method Description ByMethodSpec
ByMethodSpec. delete(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.ByMethodSpec
ByMethodSpec. get(Block block)
Defines the action to to take if the request has a HTTP method of GET.default ByContentSpec
ByContentSpec. html(Block block)
Specifies that the given handler should be used if the client wants content of type "text/html".default ByContentSpec
ByContentSpec. json(Block block)
Specifies that the given handler should be used if the client wants content of type "application/json".ByMethodSpec
ByMethodSpec. named(String methodName, Block block)
Defines the action to to take if the request has a HTTP method ofmethodName
.default ByContentSpec
ByContentSpec. noMatch(Block block)
Specifies that the given handler should be used if the client's requested content type cannot be matched with any of the other handlers.static Handler
Handlers. of(Block block)
Creates a handler from the given blockByMethodSpec
ByMethodSpec. options(Block block)
Defines the action to to take if the request has a HTTP method of OPTIONS.ByMethodSpec
ByMethodSpec. patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.default ByContentSpec
ByContentSpec. plainText(Block block)
Specifies that the given handler should be used if the client wants content of type "text/plain".ByMethodSpec
ByMethodSpec. post(Block block)
Defines the action to to take if the request has a HTTP method of POST.ByMethodSpec
ByMethodSpec. put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.default ByContentSpec
ByContentSpec. type(CharSequence mimeType, Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.default ByContentSpec
ByContentSpec. type(String mimeType, Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.default ByContentSpec
ByContentSpec. unspecified(Block block)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.default ByContentSpec
ByContentSpec. xml(Block block)
Specifies that the given handler should be used if the client wants content of type "application/xml". -
Uses of Block in ratpack.core.http
Methods in ratpack.core.http with parameters of type Block Modifier and Type Method Description Promise<TypedData>
Request. getBody(long maxContentLength, Block onTooLarge)
The body of the request allowing up to the provided size for the content.Promise<TypedData>
Request. getBody(Block onTooLarge)
The body of the request. -
Uses of Block in ratpack.core.logging
Methods in ratpack.core.logging with parameters of type Block Modifier and Type Method Description void
MDCInterceptor. intercept(Execution execution, ExecInterceptor.ExecType execType, Block executionSegment)
-
Uses of Block in ratpack.exec
Methods in ratpack.exec with parameters of type Block Modifier and Type Method Description void
Execution. addInterceptor(ExecInterceptor execInterceptor, Block continuation)
Adds an interceptor that wraps the rest of the current execution segment and all future segments of this execution.default Operation
Operation. blockingNext(Block operation)
Executes the given block as an operation, on a blocking thread.static void
Blocking. exec(Block block)
void
ExecInterceptor. intercept(Execution execution, ExecInterceptor.ExecType execType, Block executionSegment)
Intercepts the execution of an execution segment.default Operation
Operation. next(Block operation)
static Operation
Operation. of(Block block)
boolean
ExecController. onClose(Block block)
Registers a block to be executed when this controller closes.default Downstream<T>
Downstream. onComplete(Block block)
Wrap this downstream, using the given action as the implementation of theDownstream.complete()
method.default Promise<T>
Promise. onComplete(Block block)
Specifies the action to take if theUpstream
signals complete without emitting a value or an error.default Promise<T>
Promise. onNull(Block action)
A convenience shorthand forrouting
null
values.static Operation
Blocking. op(Block block)
static void
Execution. sleep(Duration duration, Block onWake)
Pauses this execution for the given duration.void
Operation. then(Block block)
-
Uses of Block in ratpack.func
Methods in ratpack.func that return Block Modifier and Type Method Description default Block
Action. curry(T value)
Creates a block that executes this action with the given value when called.static Block
Block. noop()
static Block
Block. throwException(Throwable throwable)
Returns an action that immediately throws the given exception.Methods in ratpack.func with parameters of type Block Modifier and Type Method Description static Action<Throwable>
Action. beforeThrow(Block block)
Creates an exception-taking action that executes the given block before throwing the exception.static <T> Action<T>
Action. ignoreArg(Block block)
static void
Exceptions. uncheck(Block action)
Method parameters in ratpack.func with type arguments of type Block Modifier and Type Method Description default <T> T
Block. map(Function<? super Block,? extends T> function)
Maps a block onto a new object with the provided function. -
Uses of Block in ratpack.groovy.handling
Methods in ratpack.groovy.handling with parameters of type Block Modifier and Type Method Description GroovyByMethodSpec
GroovyByMethodSpec. delete(Block block)
Defines the action to to take if the request has a HTTP method of DELETE.GroovyByMethodSpec
GroovyByMethodSpec. get(Block block)
Defines the action to to take if the request has a HTTP method of GET.GroovyByContentSpec
DefaultGroovyByContentSpec. html(Block block)
GroovyByContentSpec
GroovyByContentSpec. html(Block block)
Specifies that the given handler should be used if the client wants content of type "text/html".GroovyByContentSpec
DefaultGroovyByContentSpec. json(Block block)
GroovyByContentSpec
GroovyByContentSpec. json(Block block)
Specifies that the given handler should be used if the client wants content of type "application/json".GroovyByMethodSpec
GroovyByMethodSpec. named(String methodName, Block block)
Defines the action to to take if the request has a HTTP method ofmethodName
.GroovyByContentSpec
DefaultGroovyByContentSpec. noMatch(Block block)
GroovyByContentSpec
GroovyByContentSpec. noMatch(Block block)
Specifies that the given handler should be used if the client's requested content type cannot be matched with any of the other handlers.GroovyByMethodSpec
GroovyByMethodSpec. options(Block block)
Defines the action to to take if the request has a HTTP method of OPTIONS.GroovyByMethodSpec
GroovyByMethodSpec. patch(Block block)
Defines the action to to take if the request has a HTTP method of PATCH.GroovyByContentSpec
DefaultGroovyByContentSpec. plainText(Block block)
GroovyByContentSpec
GroovyByContentSpec. plainText(Block block)
Specifies that the given handler should be used if the client wants content of type "text/plain".GroovyByMethodSpec
GroovyByMethodSpec. post(Block block)
Defines the action to to take if the request has a HTTP method of POST.GroovyByMethodSpec
GroovyByMethodSpec. put(Block block)
Defines the action to to take if the request has a HTTP method of PUT.GroovyByContentSpec
DefaultGroovyByContentSpec. type(CharSequence mimeType, Block block)
GroovyByContentSpec
DefaultGroovyByContentSpec. type(String mimeType, Block block)
GroovyByContentSpec
GroovyByContentSpec. type(CharSequence mimeType, Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.GroovyByContentSpec
GroovyByContentSpec. type(String mimeType, Block block)
Specifies that the given handler should be used if the client wants content of the given MIME type.GroovyByContentSpec
DefaultGroovyByContentSpec. unspecified(Block block)
GroovyByContentSpec
GroovyByContentSpec. unspecified(Block block)
Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.GroovyByContentSpec
DefaultGroovyByContentSpec. xml(Block block)
GroovyByContentSpec
GroovyByContentSpec. xml(Block block)
Specifies that the given handler should be used if the client wants content of type "application/xml".
-