接口 WebRequestMatcher

所有已知实现类:
HostRequestMatcher, UrlRegexRequestMatcher
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface WebRequestMatcher
Strategy for matching on a WebRequest.
从以下版本开始:
4.0
作者:
Rob Winch
另请参阅:
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    matches(org.htmlunit.WebRequest request)
    Whether this matcher matches on the supplied web request.
  • 方法详细资料

    • matches

      boolean matches(org.htmlunit.WebRequest request)
      Whether this matcher matches on the supplied web request.
      参数:
      request - the WebRequest to attempt to match on
      返回:
      true if this matcher matches on the WebRequest