类 UrlRegexRequestMatcher
java.lang.Object
cn.taketoday.test.web.servlet.htmlunit.UrlRegexRequestMatcher
- 所有已实现的接口:
WebRequestMatcher
A
WebRequestMatcher that allows matching on
WebRequest#getUrl().toExternalForm() using a regular expression.
For example, if you would like to match on the domain code.jquery.com,
you might want to use the following.
WebRequestMatcher cdnMatcher = new UrlRegexRequestMatcher(".*?//code.jquery.com/.*");
- 从以下版本开始:
- 4.0
- 作者:
- Rob Winch, Sam Brannen
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanmatches(org.htmlunit.WebRequest request) Whether this matcher matches on the supplied web request.
-
字段详细资料
-
pattern
-
-
构造器详细资料
-
UrlRegexRequestMatcher
-
UrlRegexRequestMatcher
-
-
方法详细资料
-
matches
public boolean matches(org.htmlunit.WebRequest request) 从接口复制的说明:WebRequestMatcherWhether this matcher matches on the supplied web request.- 指定者:
matches在接口中WebRequestMatcher- 参数:
request- theWebRequestto attempt to match on- 返回:
trueif this matcher matches on theWebRequest
-