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()

      Constructor for HttpMethodMatcher.

    • HttpMethodMatcher

      public HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods)

      Constructor for HttpMethodMatcher.

      Parameters:
      methods - a HttpConstants.HTTP_METHOD object
  • Method Details

    • matches

      public boolean matches(CallContext ctx)
      Check if the context matches.
      Specified by:
      matches in interface Matcher
      Parameters:
      ctx - the context
      Returns:
      whether the context matches