com.atlassian.plugins.rest.common.interceptor
Interface ResourceInterceptor

All Known Implementing Classes:
ExpandInterceptor, TransactionInterceptor, ValidationInterceptor

public interface ResourceInterceptor

Intercepts the execution of a resource method. Implementations should call MethodInvocation.invoke() to call the next interceptor in the chain. Interceptor instances are created once for every resource method.

Since:
2.0

Method Summary
 void intercept(MethodInvocation invocation)
          Intercepts the method invocation
 

Method Detail

intercept

void intercept(MethodInvocation invocation)
               throws java.lang.IllegalAccessException,
                      java.lang.reflect.InvocationTargetException
Intercepts the method invocation

Parameters:
invocation - Context information about the invocation
Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 2014 Atlassian. All Rights Reserved.