Package org.pac4j.core.matching.matcher
Class HttpMethodMatcher
- java.lang.Object
-
- org.pac4j.core.matching.matcher.HttpMethodMatcher
-
-
Constructor Summary
Constructors Constructor Description HttpMethodMatcher()
HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<HttpConstants.HTTP_METHOD>
getMethods()
boolean
matches(WebContext context, SessionStore sessionStore)
Check if the web context matches.void
setMethods(java.util.Set<HttpConstants.HTTP_METHOD> methods)
java.lang.String
toString()
-
-
-
Constructor Detail
-
HttpMethodMatcher
public HttpMethodMatcher()
-
HttpMethodMatcher
public HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods)
-
-
Method Detail
-
matches
public boolean matches(WebContext context, SessionStore sessionStore)
Description copied from interface:Matcher
Check if the web context matches.
-
getMethods
public java.util.Set<HttpConstants.HTTP_METHOD> getMethods()
-
setMethods
public void setMethods(java.util.Set<HttpConstants.HTTP_METHOD> methods)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-