Uses of Interface
ratpack.func.Block
-
Packages that use Block Package Description ratpack.exec The execution management.ratpack.func General functional (i.e. Single Abstract Method) types.ratpack.groovy.handling Groovy specific extensions to classes in theratpack.handlingpackage.ratpack.handling The handling of application requests.ratpack.http The HTTP protocol.ratpack.logging Utility classes for integration Ratpack with various logging frameworks.ratpack.util General purpose types and utilities. -
-
Uses of Block in ratpack.exec
Methods in ratpack.exec with parameters of type Block Modifier and Type Method Description voidExecution. 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 OperationOperation. blockingNext(Block operation)Executes the given block as an operation, on a blocking thread.static voidBlocking. exec(Block block)voidExecInterceptor. intercept(Execution execution, ExecInterceptor.ExecType execType, Block executionSegment)Intercepts the execution of an execution segment.default OperationOperation. next(Block operation)static OperationOperation. of(Block block)booleanExecController. onClose(Block block)Adds a callback to run when stopping this exec controller.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 the Promise signals complete without emitting a value or an error.default Promise<T>Promise. onNull(Block action)A convenience shorthand forroutingnullvalues.static OperationBlocking. op(Block block)static voidExecution. sleep(java.time.Duration duration, Block onWake)Pauses this execution for the given duration.voidOperation. then(Block block) -
Uses of Block in ratpack.func
Methods in ratpack.func that return Block Modifier and Type Method Description default BlockAction. curry(T value)Creates a block that executes this action with the given value when called.static BlockBlock. noop()static BlockBlock. throwException(java.lang.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<java.lang.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)Method parameters in ratpack.func with type arguments of type Block Modifier and Type Method Description default <T> TBlock. 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 GroovyByMethodSpecGroovyByMethodSpec. delete(Block block)Defines the action to to take if the request has a HTTP method of DELETE.GroovyByMethodSpecGroovyByMethodSpec. get(Block block)Defines the action to to take if the request has a HTTP method of GET.GroovyByContentSpecDefaultGroovyByContentSpec. html(Block block)GroovyByContentSpecGroovyByContentSpec. html(Block block)Specifies that the given handler should be used if the client wants content of type "text/html".GroovyByContentSpecDefaultGroovyByContentSpec. json(Block block)GroovyByContentSpecGroovyByContentSpec. json(Block block)Specifies that the given handler should be used if the client wants content of type "application/json".GroovyByMethodSpecGroovyByMethodSpec. named(java.lang.String methodName, Block block)Defines the action to to take if the request has a HTTP method ofmethodName.GroovyByContentSpecDefaultGroovyByContentSpec. noMatch(Block block)GroovyByContentSpecGroovyByContentSpec. 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.GroovyByMethodSpecGroovyByMethodSpec. options(Block block)Defines the action to to take if the request has a HTTP method of OPTIONS.GroovyByMethodSpecGroovyByMethodSpec. patch(Block block)Defines the action to to take if the request has a HTTP method of PATCH.GroovyByContentSpecDefaultGroovyByContentSpec. plainText(Block block)GroovyByContentSpecGroovyByContentSpec. plainText(Block block)Specifies that the given handler should be used if the client wants content of type "text/plain".GroovyByMethodSpecGroovyByMethodSpec. post(Block block)Defines the action to to take if the request has a HTTP method of POST.GroovyByMethodSpecGroovyByMethodSpec. put(Block block)Defines the action to to take if the request has a HTTP method of PUT.GroovyByContentSpecDefaultGroovyByContentSpec. type(java.lang.CharSequence mimeType, Block block)GroovyByContentSpecDefaultGroovyByContentSpec. type(java.lang.String mimeType, Block block)GroovyByContentSpecGroovyByContentSpec. type(java.lang.CharSequence mimeType, Block block)Specifies that the given handler should be used if the client wants content of the given MIME type.GroovyByContentSpecGroovyByContentSpec. type(java.lang.String mimeType, Block block)Specifies that the given handler should be used if the client wants content of the given MIME type.GroovyByContentSpecDefaultGroovyByContentSpec. unspecified(Block block)GroovyByContentSpecGroovyByContentSpec. unspecified(Block block)Specifies that the given handler should be used if the client did not provide a usable "Accept" header in the request.GroovyByContentSpecDefaultGroovyByContentSpec. xml(Block block)GroovyByContentSpecGroovyByContentSpec. 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.handling
Methods in ratpack.handling with parameters of type Block Modifier and Type Method Description ByMethodSpecByMethodSpec. delete(Block block)Defines the action to to take if the request has a HTTP method of DELETE.ByMethodSpecByMethodSpec. get(Block block)Defines the action to to take if the request has a HTTP method of GET.default ByContentSpecByContentSpec. html(Block block)Specifies that the given handler should be used if the client wants content of type "text/html".default ByContentSpecByContentSpec. json(Block block)Specifies that the given handler should be used if the client wants content of type "application/json".ByMethodSpecByMethodSpec. named(java.lang.String methodName, Block block)Defines the action to to take if the request has a HTTP method ofmethodName.default ByContentSpecByContentSpec. 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 HandlerHandlers. of(Block block)Creates a handler from the given blockByMethodSpecByMethodSpec. options(Block block)Defines the action to to take if the request has a HTTP method of OPTIONS.ByMethodSpecByMethodSpec. patch(Block block)Defines the action to to take if the request has a HTTP method of PATCH.default ByContentSpecByContentSpec. plainText(Block block)Specifies that the given handler should be used if the client wants content of type "text/plain".ByMethodSpecByMethodSpec. post(Block block)Defines the action to to take if the request has a HTTP method of POST.ByMethodSpecByMethodSpec. put(Block block)Defines the action to to take if the request has a HTTP method of PUT.default ByContentSpecByContentSpec. type(java.lang.CharSequence mimeType, Block block)Specifies that the given handler should be used if the client wants content of the given MIME type.default ByContentSpecByContentSpec. type(java.lang.String mimeType, Block block)Specifies that the given handler should be used if the client wants content of the given MIME type.default ByContentSpecByContentSpec. 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 ByContentSpecByContentSpec. 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.http
Methods in ratpack.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.logging
Methods in ratpack.logging with parameters of type Block Modifier and Type Method Description voidMDCInterceptor. intercept(Execution execution, ExecInterceptor.ExecType execType, Block executionSegment) -
Uses of Block in ratpack.util
Methods in ratpack.util with parameters of type Block Modifier and Type Method Description static voidExceptions. uncheck(Block action)
-