@Intercepts public class AuthorizationInterceptor extends Object implements Interceptor
| Constructor and Description |
|---|
AuthorizationInterceptor(UserInfo info,
UserDao dao,
Result result) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ResourceMethod method)
the easiest way to implement the accepts method is creating an annotation
|
void |
intercept(InterceptorStack stack,
ResourceMethod method,
Object resourceInstance)
Intercepts the request and checks if there is a user logged in.
|
public boolean accepts(ResourceMethod method)
accepts in interface Interceptorpublic void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException
intercept in interface InterceptorInterceptionExceptionCopyright © 2015 Caelum. All Rights Reserved.