public abstract class AbstractInstrumentResourceFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
protected JiraProperties |
jiraProperties |
protected com.atlassian.plugin.PluginAccessor |
pluginAccessor |
| Constructor and Description |
|---|
AbstractInstrumentResourceFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
acceptResource(javax.servlet.ServletResponse response)
Returns true when given response contains resource that should be instrumented by filter implementation.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain) |
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.
|
void |
init(javax.servlet.FilterConfig filterConfig) |
protected abstract boolean |
instrumentEnabled() |
protected abstract Matcher |
matchBatch(String requestUrl) |
protected abstract Matcher |
matchResource(String requestUrl) |
protected String |
processResource(String requestUrl,
String content) |
protected JiraProperties jiraProperties
protected com.atlassian.plugin.PluginAccessor pluginAccessor
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionprotected String processResource(String requestUrl, String content) throws IOException
IOExceptionprotected String getResourceLocation(String resourceName)
resourceName - protected abstract boolean acceptResource(javax.servlet.ServletResponse response)
response - protected abstract boolean instrumentEnabled()
protected abstract AbstractInstrumentResource getInstrumentResource()
public void destroy()
destroy in interface javax.servlet.FilterCopyright © 2002-2023 Atlassian. All Rights Reserved.