public class PathAndMethodRequestMatcherBuilder extends Object
PathAndMethodRequestMatcher. At the very least a path should be selected since by default a
MethodRequestMatcher.acceptAll() matcher will be used. Instances can only be obtained via
PathAndMethodRequestMatcher.builder().| Modifier and Type | Method and Description |
|---|---|
PathAndMethodRequestMatcher |
build() |
PathAndMethodRequestMatcherBuilder |
methodRequestMatcher(MethodRequestMatcher methodRequestMatcher)
Selects a
MethodRequestMatcher to use. |
PathAndMethodRequestMatcherBuilder |
path(String path)
Selects the path pattern to use.
|
public PathAndMethodRequestMatcherBuilder methodRequestMatcher(MethodRequestMatcher methodRequestMatcher)
MethodRequestMatcher to use. MethodRequestMatcher.acceptAll() is used by default.methodRequestMatcher - the MethodRequestMatcher to usepublic PathAndMethodRequestMatcherBuilder path(String path)
path - the path to match against, which could contain wildcards and parametrizationpublic PathAndMethodRequestMatcher build()
PathAndMethodRequestMatcher configured as desired.Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.