@Documented @Target(value=METHOD) @Retention(value=RUNTIME) @Inherited public @interface RestHook
For example, if you want to add an initialization method to your resource:
Or if you want to intercept REST calls:
The hook events can be broken down into two categories:
INIT
- Right before initialization.
POST_INIT
- Right after initialization.
POST_INIT_CHILD_FIRST
- Right after initialization, but run child methods first.
DESTROY
- Right before servlet destroy.
START_CALL
- At the beginning of a REST call.
PRE_CALL
- Right before the POST_CALL
- Right after the END_CALL
- At the end of the REST call after the response has been flushed.
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.