View Javadoc

1   package com.atlassian.plugins.rest.common.interceptor.impl.test;
2   
3   import com.atlassian.plugins.rest.common.interceptor.MethodInvocation;
4   import com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor;
5   
6   import java.lang.reflect.InvocationTargetException;
7   
8   public class MyInterceptor implements ResourceInterceptor
9   {
10      private boolean called;
11      public void intercept(MethodInvocation invocation) throws IllegalAccessException, InvocationTargetException
12      {
13          called = true;
14          invocation.invoke();
15      }
16  
17      public boolean isCalled()
18      {
19          return called;
20      }
21  }