public class HttpRequestPathMatcher extends AbstractHttpRequestMatcher
| Constructor and Description |
|---|
HttpRequestPathMatcher(String... patterns) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<String> |
getContent()
Return the discrete items a request condition is composed of.
|
List<String> |
getMatchingPatterns(org.springframework.http.HttpRequest request) |
List<String> |
getMatchingPatterns(String lookupPath) |
protected String |
getToStringInfix()
The notation to use when printing discrete items of content.
|
boolean |
match(org.springframework.http.HttpRequest request)
Match
HttpRequest or not. |
equals, hashCode, toStringpublic HttpRequestPathMatcher(String... patterns)
public boolean match(org.springframework.http.HttpRequest request)
HttpRequestMatcherHttpRequest or not.request - The HttpRequest instance.true, or false.public List<String> getMatchingPatterns(org.springframework.http.HttpRequest request)
protected Collection<String> getContent()
AbstractHttpRequestMatcherFor example URL patterns, HTTP request methods, param expressions, etc.
getContent in class AbstractHttpRequestMatchernullprotected String getToStringInfix()
AbstractHttpRequestMatcher
For example " || " for URL patterns or " && " for param
expressions.
getToStringInfix in class AbstractHttpRequestMatcherCopyright © 2021 Pivotal Software, Inc.. All rights reserved.