public class HttpRequestMethodsMatcher extends AbstractHttpRequestMatcher
| 构造器和说明 |
|---|
HttpRequestMethodsMatcher(String... methods) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Collection<org.springframework.http.HttpMethod> |
getContent()
Return the discrete items a request condition is composed of.
|
Set<org.springframework.http.HttpMethod> |
getMethods() |
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 HttpRequestMethodsMatcher(String... methods)
public Set<org.springframework.http.HttpMethod> getMethods()
public boolean match(org.springframework.http.HttpRequest request)
HttpRequestMatcherHttpRequest or not.request - The HttpRequest instance.true, or false.protected Collection<org.springframework.http.HttpMethod> getContent()
AbstractHttpRequestMatcherFor example URL patterns, HTTP request methods, param expressions, etc.
getContent 在类中 AbstractHttpRequestMatchernullprotected String getToStringInfix()
AbstractHttpRequestMatcher
For example " || " for URL patterns or " && " for param
expressions.
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.