public class ClientVersionMatcher extends RestMatcher
Modifier | Constructor and Description |
---|---|
protected |
ClientVersionMatcher(String clientVersionHeader,
MethodInfo mi)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(RestRequest req)
Returns
|
boolean |
mustMatch()
Returns
|
protected ClientVersionMatcher(String clientVersionHeader, MethodInfo mi)
clientVersionHeader
- The HTTP request header name containing the client version.
If mi
- The version string that the client version must match.public boolean matches(RestRequest req)
RestMatcher
matches
in class RestMatcher
req
- The servlet request.public boolean mustMatch()
RestMatcher
If
mustMatch
in class RestMatcher
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.