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

in.hocg.sso.server.sample.config.security.user.IsAjaxRequestMatcher Maven / Gradle / Ivy

There is a newer version: 1.0.63
Show newest version
package in.hocg.sso.server.sample.config.security.user;

import in.hocg.boot.web.autoconfiguration.utils.web.RequestUtils;
import org.springframework.security.web.util.matcher.RequestMatcher;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by hocgin on 2020/1/9.
 * email: [email protected]
 *
 * @author hocgin
 */
public class IsAjaxRequestMatcher implements RequestMatcher {
    public static final IsAjaxRequestMatcher THIS = new IsAjaxRequestMatcher();

    @Override
    public boolean matches(HttpServletRequest request) {
        return RequestUtils.isAJAX(request);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy