Package org.apache.juneau.rest.matcher
Class ClientVersionMatcher
java.lang.Object
org.apache.juneau.rest.matcher.RestMatcher
org.apache.juneau.rest.matcher.ClientVersionMatcher
Specialized matcher for matching client versions.
See Also:
-
Constructor Summary
ConstructorDescriptionClientVersionMatcher
(String clientVersionHeader, MethodInfo mi) Constructor. -
Method Summary
-
Constructor Details
-
ClientVersionMatcher
Constructor.- Parameters:
clientVersionHeader
- The HTTP request header name containing the client version. Ifnull or an empty string, uses"Client-Version" mi
- The version string that the client version must match.
-
-
Method Details
-
matches
Description copied from class:RestMatcher
Returnstrue if the specified request matches this matcher.- Specified by:
matches
in classRestMatcher
- Parameters:
req
- The servlet request.- Returns:
true if the specified request matches this matcher.
-
required
Description copied from class:RestMatcher
Returnstrue if this matcher is required to match in order for the method to be invoked.If
false , then only one of the matchers must match.- Overrides:
required
in classRestMatcher
- Returns:
true if this matcher is required to match in order for the method to be invoked.
-