Class UserNavigationAcceptRequestMatcher
java.lang.Object
org.pentaho.platform.web.servlet.matchers.UserNavigationAcceptRequestMatcher
- All Implemented Interfaces:
org.springframework.security.web.util.matcher.RequestMatcher
public class UserNavigationAcceptRequestMatcher
extends Object
implements org.springframework.security.web.util.matcher.RequestMatcher
The
UserNavigationAcceptRequestMatcher determines if a request can be considered a user navigation request,
based on the presence and value of the `accept` HTTP request header.
By default, if the `accept` header contains one of the values `text/html` or `application/xhtml+xml`, it indicates that the request likely targets a web browser's document, frame, iframe, or object tags. These requests typically correspond to user navigation actions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
org.springframework.security.web.util.matcher.RequestMatcher.MatchResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisNavigationContent(String accept) booleanmatches(jakarta.servlet.http.HttpServletRequest request) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.web.util.matcher.RequestMatcher
matcher
-
Constructor Details
-
UserNavigationAcceptRequestMatcher
public UserNavigationAcceptRequestMatcher() -
UserNavigationAcceptRequestMatcher
-
-
Method Details
-
matches
public boolean matches(@NonNull jakarta.servlet.http.HttpServletRequest request) - Specified by:
matchesin interfaceorg.springframework.security.web.util.matcher.RequestMatcher