org.baswell.routes
Annotation Type BeforeRoute


@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.
 

exceptTags

public abstract java.lang.String[] exceptTags
Do not execute before any routes that have matching Route.tags().

Default:
{}

onlyTags

public abstract java.lang.String[] onlyTags
Only execute before any routes that have matching Route.tags().

Default:
{}

order

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.

Default:
{}