|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||
@Retention(value=RUNTIME) @Target(value=METHOD) public @interface BeforeRoute
Callback to receive notification before HTTP requests have been sent to the route method. BeforeRoute methods should
return a boolean or void. If a boolean is the return type and false is returned, all
further processing will be stopped. A BeforeRoute method can also stop processing by throwing an exception.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
exceptTags
Do not execute before any routes that have matching Route.tags(). |
java.lang.String[] |
onlyTags
Only execute before any routes that have matching Route.tags(). |
int[] |
order
An optional weight to control the order of method execution when there are multiple BeforeRoute for a Route. |
public abstract java.lang.String[] exceptTags
Route.tags().
public abstract java.lang.String[] onlyTags
Route.tags().
public abstract int[] order
An optional weight to control the order of method execution when there are multiple BeforeRoute for a Route. Smaller numbers go first.
This should be used as a single value. Only the first value in the array will be used.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||