接口 WebRequestMatcher
- 所有已知实现类:
HostRequestMatcher
,UrlRegexRequestMatcher
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface WebRequestMatcher
Strategy for matching on aWebRequest
.- 从以下版本开始:
- 4.2
- 作者:
- Rob Winch
- 另请参阅:
HostRequestMatcher
,UrlRegexRequestMatcher
方法详细资料
matches
boolean matches(com.gargoylesoftware.htmlunit.WebRequest request)
Whether this matcher matches on the supplied web request.- 参数:
request
- theWebRequest
to attempt to match on- 返回:
true
if this matcher matches on theWebRequest