public class DefaultMethodRequestMatcher extends Object implements MethodRequestMatcher
| Constructor and Description |
|---|
DefaultMethodRequestMatcher(HttpConstants.Method... methods)
The list of methods accepted by this matcher
|
DefaultMethodRequestMatcher(String... methods)
The list of methods accepted by this matcher
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getMethods() |
static String |
getMethodsListRepresentation(List<String> methods) |
int |
hashCode() |
boolean |
intersectsWith(MethodRequestMatcher matcher)
Determines if there's an intersection between the allowed methods by two request matcher
|
boolean |
matches(HttpRequest httpRequest) |
String |
toString() |
public DefaultMethodRequestMatcher(HttpConstants.Method... methods)
methods - http request method allowed.public DefaultMethodRequestMatcher(String... methods)
methods - http request method allowed.public boolean intersectsWith(MethodRequestMatcher matcher)
intersectsWith in interface MethodRequestMatchermatcher - request matcher to test againstpublic boolean matches(HttpRequest httpRequest)
matches in interface RequestMatcherpublic List<String> getMethods()
getMethods in interface MethodRequestMatcherpublic static String getMethodsListRepresentation(List<String> methods)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.