public class

RequestScopeInterceptor

extends Object
implements ResourceInterceptor
java.lang.Object
   ↳ com.atlassian.jira.rest.v2.issue.scope.RequestScopeInterceptor

Class Overview

This interceptor can be used in plugins that define <rest> modules. In conjunction with the RequestScope, plugins can have define request-scoped beans in Spring.

Summary

Public Constructors
RequestScopeInterceptor(RequestScope scope)
Creates a new RequestScopeInterceptor.
Public Methods
void intercept(MethodInvocation invocation)
Uses the RequestScope to begin and destroy a Request.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugins.rest.common.interceptor.ResourceInterceptor

Public Constructors

public RequestScopeInterceptor (RequestScope scope)

Creates a new RequestScopeInterceptor.

Parameters
scope a RequestScope

Public Methods

public void intercept (MethodInvocation invocation)

Uses the RequestScope to begin and destroy a Request. This has the side effect of setting and clearing the "current" MethodInvocation.

Parameters
invocation a MethodInvocation containing information about the invocation