java.lang.Object
com.github.markusbernhardt.proxy.selector.whitelist.HostnameFilter
- All Implemented Interfaces:
UriFilter
Tests if a host name of a given URI matches some criteria.
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Nested Class Summary
Nested Classes
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HostnameFilter
Constructor
- Parameters:
mode - the filter mode.
matchTo - the match criteria.
-
Method Details
-
accept
public boolean accept(URI uri)
accept
- Specified by:
accept in interface UriFilter
- Parameters:
uri - the URI to test.
- Returns:
- true if it matches the criteria else false.
- See Also:
-