public final class Results extends Object
Result instances.| Constructor and Description |
|---|
Results() |
| Modifier and Type | Method and Description |
|---|---|
static CompositeResult |
aggregate(Iterable<Result> results)
Aggregates a list of results into one single
CompositeResult |
static Result |
fail()
Create a failed
Result. |
static Result |
fail(String message)
Create a failed
Result with a message. |
static Result |
fail(String message,
Throwable e)
|
static NavigationResult |
navigateTo(Class<? extends UICommand> next)
Create a
NavigationResult using the given UICommand type as the target. |
static NavigationResult |
navigateTo(Class<? extends UICommand>[] next)
Create a
NavigationResult using the given UICommand array as the target. |
static NavigationResult |
navigateTo(Class<? extends UICommand> next,
Class<? extends UICommand>... additional)
Create a
NavigationResult using the given UICommand types as the targets. |
static NavigationResultBuilder |
navigationBuilder() |
static Result |
success()
Create a successful
Result. |
static Result |
success(String message)
Create a successful
Result with a message. |
public static final Result success(String message)
Result with a message.public static final NavigationResult navigateTo(Class<? extends UICommand> next)
NavigationResult using the given UICommand type as the target.public static final NavigationResult navigateTo(Class<? extends UICommand>[] next)
NavigationResult using the given UICommand array as the target.public static final NavigationResult navigateTo(Class<? extends UICommand> next, Class<? extends UICommand>... additional)
NavigationResult using the given UICommand types as the targets.public static NavigationResultBuilder navigationBuilder()
public static CompositeResult aggregate(Iterable<Result> results)
CompositeResultCopyright © 2016 JBoss by Red Hat. All rights reserved.