@Test public void testDestroy() throws IOException, ServletException { FilterConfig filterConfig = getFilterConfig(); when(filterConfig.getInitParameter("exclude-pattern")).thenReturn("^/foo/ba.*$"); SniffyFilter filter = new SniffyFilter(); filter.init(filterConfig); filter.destroy(); }
public void destroy() { }
SniffyFilter implements Filter { public void destroy() { } }
SniffyFilter implements Filter { public void destroy() { } SniffyFilter(); }
SniffyFilter implements Filter { public void destroy() { } SniffyFilter(); void init(FilterConfig filterConfig); void doFilter(final ServletRequest request, ServletResponse response, final FilterChain chain); void destroy(); boolean isInjectHtml(); void setInjectHtml(boolean injectHtml); Pattern getInjectHtmlExcludePattern(); void setInjectHtmlExcludePattern(Pattern injectHtmlExcludePattern); @Deprecated boolean isEnabled(); @Deprecated void setEnabled(boolean enabled); boolean isFilterEnabled(); void setFilterEnabled(boolean filterEnabled); boolean isMonitorSocket(); void setMonitorSocket(boolean monitorSocket); Pattern getExcludePattern(); void setExcludePattern(Pattern excludePattern); }
SniffyFilter implements Filter { public void destroy() { } SniffyFilter(); void init(FilterConfig filterConfig); void doFilter(final ServletRequest request, ServletResponse response, final FilterChain chain); void destroy(); boolean isInjectHtml(); void setInjectHtml(boolean injectHtml); Pattern getInjectHtmlExcludePattern(); void setInjectHtmlExcludePattern(Pattern injectHtmlExcludePattern); @Deprecated boolean isEnabled(); @Deprecated void setEnabled(boolean enabled); boolean isFilterEnabled(); void setFilterEnabled(boolean filterEnabled); boolean isMonitorSocket(); void setMonitorSocket(boolean monitorSocket); Pattern getExcludePattern(); void setExcludePattern(Pattern excludePattern); static final String HEADER_CORS_HEADERS; static final String HEADER_NUMBER_OF_QUERIES; static final String HEADER_TIME_TO_FIRST_BYTE; static final String HEADER_REQUEST_DETAILS; static final String SNIFFY_URI_PREFIX; static final String JAVASCRIPT_URI; static final String JAVASCRIPT_SOURCE_URI; static final String JAVASCRIPT_MAP_URI; static final String REQUEST_URI_PREFIX; static final String SNIFFY; static final String SNIFFY_ENABLED_PARAMETER; static final String INJECT_HTML_ENABLED_PARAMETER; }