Constructor and Description |
---|
HttpMethodMatcher() |
HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods) |
Modifier and Type | Method and Description |
---|---|
Set<HttpConstants.HTTP_METHOD> |
getMethods() |
boolean |
matches(WebContext context)
Check if the web context matches.
|
void |
setMethods(Set<HttpConstants.HTTP_METHOD> methods) |
String |
toString() |
public HttpMethodMatcher()
public HttpMethodMatcher(HttpConstants.HTTP_METHOD... methods)
public boolean matches(WebContext context) throws HttpAction
Matcher
matches
in interface Matcher
context
- the web contextHttpAction
- whether an additional HTTP action is requiredpublic Set<HttpConstants.HTTP_METHOD> getMethods()
public void setMethods(Set<HttpConstants.HTTP_METHOD> methods)
Copyright © 2017. All rights reserved.