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.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected String processResource(String requestUrl, String content) throws IOException
IOException
protected 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.Filter
Copyright © 2002-2022 Atlassian. All Rights Reserved.