Package | Description |
---|---|
ratpack.exec |
The execution management.
|
ratpack.func |
General functional (i.e. Single Abstract Method) types.
|
ratpack.handling |
The handling of application requests.
|
ratpack.test.exec |
Modifier and Type | Method and Description |
---|---|
void |
ExecControl.addInterceptor(ExecInterceptor execInterceptor,
NoArgAction continuation)
Adds an interceptor that wraps the rest of the current execution segment and all future segments of this execution.
|
Promise<T> |
PromiseOperations.onNull(NoArgAction action)
A convenience shorthand for
routing null values. |
Modifier and Type | Method and Description |
---|---|
static NoArgAction |
NoArgAction.throwException(Throwable throwable)
Returns an action that immediately throws the given exception.
|
Modifier and Type | Method and Description |
---|---|
static <T> Action<T> |
Action.ignoreArg(NoArgAction noArgAction) |
Modifier and Type | Method and Description |
---|---|
void |
Context.addInterceptor(ExecInterceptor execInterceptor,
NoArgAction continuation) |
ByMethodSpec |
ByMethodSpec.delete(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of DELETE.
|
ByMethodSpec |
ByMethodSpec.get(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of GET.
|
ByContentSpec |
ByContentSpec.html(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "text/html".
|
ByContentSpec |
ByContentSpec.json(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "application/json".
|
ByMethodSpec |
ByMethodSpec.named(String methodName,
NoArgAction handler)
Defines the action to to take if the request has a HTTP method of
methodName . |
ByContentSpec |
ByContentSpec.noMatch(NoArgAction handler)
Specifies that the given handler should be used if the client's requested content type cannot be matched with any of the other handlers.
|
ByMethodSpec |
ByMethodSpec.patch(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PATCH.
|
ByContentSpec |
ByContentSpec.plainText(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "text/plain".
|
ByMethodSpec |
ByMethodSpec.post(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of POST.
|
ByMethodSpec |
ByMethodSpec.put(NoArgAction handler)
Defines the action to to take if the request has a HTTP method of PUT.
|
ByContentSpec |
ByContentSpec.type(String mimeType,
NoArgAction handler)
Specifies that the given handler should be used if the client wants content of the given MIME type.
|
ByContentSpec |
ByContentSpec.xml(NoArgAction handler)
Specifies that the given handler should be used if the client wants content of type "application/xml".
|
Modifier and Type | Method and Description |
---|---|
default void |
ExecHarness.addInterceptor(ExecInterceptor execInterceptor,
NoArgAction continuation)
Adds an interceptor that wraps the rest of the current execution segment and all future segments of this execution.
|