Interface WebRequestMatcher

All Known Implementing Classes:
HostRequestMatcher, UrlRegexRequestMatcher
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface WebRequestMatcher
Strategy for matching on a WebRequest.
Since:
4.2
Author:
Rob Winch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    matches(org.htmlunit.WebRequest request)
    Whether this matcher matches on the supplied web request.
  • Method Details

    • matches

      boolean matches(org.htmlunit.WebRequest request)
      Whether this matcher matches on the supplied web request.
      Parameters:
      request - the WebRequest to attempt to match on
      Returns:
      true if this matcher matches on the WebRequest