All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openl.rules.webstudio.security.ExcludingRequestMatcher Maven / Gradle / Ivy

There is a newer version: 5.27.9
Show newest version
package org.openl.rules.webstudio.security;

import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.HttpServletRequest;

import org.springframework.security.web.util.matcher.RequestMatcher;

/**
 * @author nsamatov.
 */
public class ExcludingRequestMatcher implements RequestMatcher {
    private List matchers = new ArrayList<>();

    @Override
    public boolean matches(HttpServletRequest request) {
        for (RequestMatcher matcher : matchers) {
            if (matcher.matches(request)) {
                return false;
            }
        }
        return true;
    }

    public void setMatchers(List matchers) {
        this.matchers = matchers;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy