public class DefaultMethodRequestMatcher extends Object implements org.mule.runtime.http.api.server.MethodRequestMatcher
| Constructor and Description |
|---|
DefaultMethodRequestMatcher(org.mule.runtime.http.api.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(org.mule.runtime.http.api.server.MethodRequestMatcher matcher)
Determines if there's an intersection between the allowed methods by two request matcher
|
boolean |
matches(org.mule.runtime.http.api.domain.message.request.HttpRequest httpRequest) |
String |
toString() |
public DefaultMethodRequestMatcher(org.mule.runtime.http.api.HttpConstants.Method... methods)
methods - http request method allowed.public DefaultMethodRequestMatcher(String... methods)
methods - http request method allowed.public boolean intersectsWith(org.mule.runtime.http.api.server.MethodRequestMatcher matcher)
intersectsWith in interface org.mule.runtime.http.api.server.MethodRequestMatchermatcher - request matcher to test againstpublic boolean matches(org.mule.runtime.http.api.domain.message.request.HttpRequest httpRequest)
matches in interface org.mule.runtime.http.api.server.RequestMatcherpublic List<String> getMethods()
getMethods in interface org.mule.runtime.http.api.server.MethodRequestMatcherpublic static String getMethodsListRepresentation(List<String> methods)
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.