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 org.springframework.cloud.sleuth.instrument.web.ExceptionLoggingFilter.java

/**
 * Filter running after {@link brave.servlet.TracingFilter} that logs uncaught exceptions.
 *
 * @author Marcin Grzejszczak
 * @since 2.0.0
 */

From source file org.intalio.tempo.web.LoginFilter.java

public class LoginFilter implements javax.servlet.Filter {
    private static final Logger LOG = LoggerFactory.getLogger(LoginFilter.class);

    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
            throws IOException, ServletException {
        if (request instanceof HttpServletRequest) {

From source file photogift.server.filter.AuthenticatedFilter.java

/**
 * Ensures a user is authenticated and authorized before continuing with the intended API call.
 *
 * @author joannasmith@google.com (Joanna Smith)
 */

From source file com.proofpoint.http.server.GZipRequestFilter.java

public class GZipRequestFilter implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {
    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
            throws IOException, ServletException {

From source file de.codecentric.boot.admin.web.SimpleCORSFilter.java

/**
 * Request filter to allow Cross-Origin Resource Sharing.
 */
public class SimpleCORSFilter implements Filter {

    // Configurable origin for CORS - default: * (all)

From source file com.serotonin.m2m2.web.filter.LoggedInFilter.java

public class LoggedInFilter implements Filter {
    private final Log LOGGER = LogFactory.getLog(LoggedInFilter.class);

    // Free mode checking should arguably be done in a separate filter, but it
    // becomes too easy to just comment out
    // such a filter in the web.xml file, so we do it here in a place where it

From source file com.acc.oauth2.HybrisOauth2UserFilter.java

/**
 * Filter sets current user by userService depending on current principal. <br>
 * This should happen only when there is a customer context. Anonymous credentials are also applicable, because special
 * 'anonymous' user is available for that purpose. Customer context is not available during client credential flow.
 * 
 * @author hansa

From source file gr.cti.android.experimentation.SimpleCORSFilter.java

@Component
public class SimpleCORSFilter implements Filter {

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

From source file org.nuxeo.wss.servlet.FailSafeWSSFilter.java

/**
 * {@link WSSFilter} wrapper to avoid breaking the EAR if the front filter is not in the classpath
 */
public class FailSafeWSSFilter implements Filter {

    protected Filter wssFilter;

From source file org.tobarsegais.webapp.RedirectFilter.java

public class RedirectFilter implements Filter {

    private String domain = null;

    public void init(FilterConfig filterConfig) throws ServletException {
        domain = filterConfig.getServletContext().getInitParameter(RedirectFilter.class.getName() + ".domain");