| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
package com.atlassian.core.filters; |
| 8 |
|
|
| 9 |
|
import com.atlassian.core.logging.ThreadLocalErrorCollection; |
| 10 |
|
import com.atlassian.util.profiling.filters.ProfilingFilter; |
| 11 |
|
|
| 12 |
|
import javax.servlet.FilterChain; |
| 13 |
|
import javax.servlet.ServletException; |
| 14 |
|
import javax.servlet.ServletRequest; |
| 15 |
|
import javax.servlet.ServletResponse; |
| 16 |
|
import java.io.IOException; |
| 17 |
|
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.17 |
|
| 18 |
|
public class ProfilingAndErrorFilter extends ProfilingFilter |
| 19 |
|
{ |
|
|
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 1 |
Complexity Density: 0.17 |
|
| 20 |
0
|
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException... |
| 21 |
|
{ |
| 22 |
0
|
ThreadLocalErrorCollection.clear(); |
| 23 |
0
|
ThreadLocalErrorCollection.enable(); |
| 24 |
|
|
| 25 |
0
|
try |
| 26 |
|
{ |
| 27 |
0
|
super.doFilter(servletRequest, servletResponse, filterChain); |
| 28 |
|
} |
| 29 |
|
finally |
| 30 |
|
{ |
| 31 |
0
|
ThreadLocalErrorCollection.disable(); |
| 32 |
0
|
ThreadLocalErrorCollection.clear(); |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
} |