Class HttpMethodMatcher

java.lang.Object
org.pac4j.core.matching.matcher.HttpMethodMatcher
All Implemented Interfaces:
Matcher

public class HttpMethodMatcher extends Object implements Matcher
Matching on HTTP methods.
Since:
1.9.3
Author:
Jerome Leleu
  • Constructor Details

    • HttpMethodMatcher

      public HttpMethodMatcher()
    • HttpMethodMatcher

      public HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods)
  • Method Details

    • matches

      public boolean matches(WebContext context, SessionStore sessionStore)
      Description copied from interface: Matcher
      Check if the web context matches.
      Specified by:
      matches in interface Matcher
      Parameters:
      context - the web context
      sessionStore - the session store
      Returns:
      whether the web context matches