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 aWebRequest
.- Since:
- 4.2
- Author:
- Rob Winch
- See Also:
HostRequestMatcher
,UrlRegexRequestMatcher
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
matches(com.gargoylesoftware.htmlunit.WebRequest request)
Whether this matcher matches on the supplied web request.
Method Detail
matches
boolean matches(com.gargoylesoftware.htmlunit.WebRequest request)
Whether this matcher matches on the supplied web request.- Parameters:
request
- theWebRequest
to attempt to match on- Returns:
true
if this matcher matches on theWebRequest