Example usage for javax.servlet Filter interface-usage

List of usage examples for javax.servlet Filter interface-usage

Introduction

In this page you can find the example usage for javax.servlet Filter interface-usage.

Usage

From source file com.meltmedia.cadmium.servlets.RedirectFilter.java

@Singleton
public class RedirectFilter implements Filter {
    private final Logger log = LoggerFactory.getLogger(getClass());

    @Inject
    protected RedirectConfigProcessor redirect;

From source file org.yes.cart.web.filter.RequestLocaleResolverFilter.java

/**
 * Default locale resolution.
 *
 * User: denispavlov
 * Date: 17/03/2015
 * Time: 00:06

From source file org.acegisecurity.adapters.HttpRequestIntegrationFilter.java

/**
 * Populates <code>SecurityContext</code> with the <code>Authentication</code> obtained from the container's
 * <code>HttpServletRequest.getUserPrincipal()</code>.<p>Use this filter with container adapters only.</p>
 *  <p>This filter <b>never</b> preserves the <code>Authentication</code> on the <code>SecurityContext</code> - it
 * is replaced every request.</p>
 *  <p>See {@link org.acegisecurity.context.HttpSessionContextIntegrationFilter} for further information.</p>

From source file GZIPFilter.java

public class GZIPFilter implements Filter {

    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
            throws IOException, ServletException {
        if (req instanceof HttpServletRequest) {
            HttpServletRequest request = (HttpServletRequest) req;

From source file com.devnexus.ting.web.filter.LoggingFilter4Logback.java

/**
 * Servlet Filter implementation class LoggingFilter4Logback
 *
 * @author Gunnar Hillert
 *
 * See also: http://blog.trifork.com/2013/06/06/adding-user-info-to-log-entries-in-a-multi-user-app-using-mapped-diagnostic-context/

From source file org.gwtwidgets.server.filters.ResponseHeaderFilter.java

/**
 * Servlet Filter that applies any HTTP header to a matched URL. Init parameters
 * are HTTP header-value pairs. Will silently fail when the ServletResponse does
 * not cast to a {@link HttpServletResponse}. A special init-parameter is
 * 'ResponseHeaderFilter.UrlPattern': it is not set as an HTTP header but is
 * rather a regular expression which can be used to further refine URLs on which

From source file me.smoe.lzy.filter.AccessLogFilter.java

/**
 * 
 */
public class AccessLogFilter implements Filter {

    @Override

From source file com.thoughtworks.go.server.security.PerformanceLoggingFilter.java

public class PerformanceLoggingFilter implements Filter {
    private static final Log LOGGER = LogFactory.getLog(PerformanceLoggingFilter.class);
    private final boolean usingJetty9;
    private boolean logRequestTimings;
    private WebRequestPerformanceLogger webRequestPerformanceLogger;

From source file com.stormpath.spring.boot.examples.filter.ReCaptchaFilter.java

public class ReCaptchaFilter implements Filter {
    // See https://www.google.com/recaptcha for setup
    private static final String RECAPTCHA_SECRET = "<Your Secret Key from google recaptcha>";

    private static final String RECAPTCHA_URL = "https://www.google.com/recaptcha/api/siteverify";
    private static final String RECAPTCHA_RESPONSE_PARAM = "g-recaptcha-response";

From source file org.esupportail.ldapRestService.SimpleCORSFilter.java

@Component
public class SimpleCORSFilter implements Filter {

    public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
            throws IOException, ServletException {
        HttpServletResponse response = (HttpServletResponse) res;