public abstract class

AbstractInstrumentResourceFilter

extends Object
implements Filter
java.lang.Object
   ↳ com.atlassian.jira.dev.resources.AbstractInstrumentResourceFilter
Known Direct Subclasses

Class Overview

Abstract class for resource instrumentation filters.

Summary

Fields
protected JiraProperties jiraProperties
protected PluginAccessor pluginAccessor
Public Constructors
AbstractInstrumentResourceFilter()
Public Methods
void destroy()
void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain)
void init(FilterConfig filterConfig)
Protected Methods
abstract boolean acceptResource(ServletResponse response)
Returns true when given response contains resource that should be instrumented by filter implementation.
abstract AbstractInstrumentResource getInstrumentResource()
String getResourceLocation(String resourceName)
Map given resource name that includes module key and resource path to complete key with module name and resource location.
abstract boolean instrumentEnabled()
abstract Matcher matchBatch(String requestUrl)
abstract Matcher matchResource(String requestUrl)
String processResource(String requestUrl, String content)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.Filter

Fields

protected JiraProperties jiraProperties

protected PluginAccessor pluginAccessor

Public Constructors

public AbstractInstrumentResourceFilter ()

Public Methods

public void destroy ()

public void doFilter (ServletRequest request, ServletResponse response, FilterChain filterChain)

Throws
IOException
ServletException

public void init (FilterConfig filterConfig)

Throws
ServletException

Protected Methods

protected abstract boolean acceptResource (ServletResponse response)

Returns true when given response contains resource that should be instrumented by filter implementation.

Returns
  • true when given response contains resource that should be instrumented by filter implementation.

protected abstract AbstractInstrumentResource getInstrumentResource ()

protected String getResourceLocation (String resourceName)

Map given resource name that includes module key and resource path to complete key with module name and resource location.

Returns
  • complete key with module name nad resource location.

protected abstract boolean instrumentEnabled ()

protected abstract Matcher matchBatch (String requestUrl)

protected abstract Matcher matchResource (String requestUrl)

protected String processResource (String requestUrl, String content)

Throws
IOException