public class HttpHeaderInspectingApiRequestMatcher extends Object implements org.springframework.security.web.util.matcher.RequestMatcher
RequestMatcher
that determines if a given request is an API request or an
interactive login request.RequestMatcher
Modifier and Type | Field and Description |
---|---|
protected static String |
X_REQUESTED_WITH_HEADER |
protected static String |
X_REQUESTED_WITH_HEADER_AJAX_VALUE |
Constructor and Description |
---|
HttpHeaderInspectingApiRequestMatcher() |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(javax.servlet.http.HttpServletRequest request)
Returns true if the given request is an API request or false if it's an interactive
login request.
|
protected static final String X_REQUESTED_WITH_HEADER
protected static final String X_REQUESTED_WITH_HEADER_AJAX_VALUE
public HttpHeaderInspectingApiRequestMatcher()
public boolean matches(javax.servlet.http.HttpServletRequest request)
matches
in interface org.springframework.security.web.util.matcher.RequestMatcher
request
- the HttpServletRequest
true
if the given request
is an API request;
false
otherwiseCopyright © 2021 JBoss by Red Hat. All rights reserved.