public class MethodRequestMatcher extends Object implements RequestMatcher
Constructor and Description |
---|
MethodRequestMatcher(String... methods)
The list of methods accepted by this matcher
|
Modifier and Type | Method and Description |
---|---|
String |
getMethodsList() |
boolean |
intersectsWith(MethodRequestMatcher methodRequestMatcher)
Determines if there's an intersection between the allowed methods by two
request matcher
|
boolean |
matches(HttpRequest httpRequest) |
String |
toString() |
public MethodRequestMatcher(String... methods)
methods
- http request method allowed.public boolean intersectsWith(MethodRequestMatcher methodRequestMatcher)
methodRequestMatcher
- request matcher to test againstpublic boolean matches(HttpRequest httpRequest)
matches
in interface RequestMatcher
httpRequest
- request to evaluate againstpublic String getMethodsList()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.