public class MethodRequestMatcherBuilder extends Object
MethodRequestMatcher. At the very least one HTTP method must be added and instances can only be obtained via
MethodRequestMatcher.builder() or MethodRequestMatcher.builder(Collection).| Modifier and Type | Method and Description |
|---|---|
MethodRequestMatcherBuilder |
add(HttpConstants.Method method)
Adds a new method to match against.
|
MethodRequestMatcherBuilder |
add(String method)
Adds a new method to match against.
|
MethodRequestMatcher |
build() |
public MethodRequestMatcherBuilder add(String method)
method - a String representation of an HTTP methodpublic MethodRequestMatcherBuilder add(HttpConstants.Method method)
method - a HttpConstants.Methodpublic MethodRequestMatcher build()
MethodRequestMatcher configured as desiredCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.