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.

  • Constructor Details

    • UserNavigationAcceptRequestMatcher

      public UserNavigationAcceptRequestMatcher()
    • UserNavigationAcceptRequestMatcher

      public UserNavigationAcceptRequestMatcher(@NonNull List<String> acceptNavigationPatterns)
  • Method Details

    • isNavigationContent

      protected boolean isNavigationContent(String accept)
    • matches

      public boolean matches(@NonNull jakarta.servlet.http.HttpServletRequest request)
      Specified by:
      matches in interface org.springframework.security.web.util.matcher.RequestMatcher