Class HostnameFilter
- java.lang.Object
-
- com.github.markusbernhardt.proxy.selector.whitelist.HostnameFilter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHostnameFilter.Mode
-
Constructor Summary
Constructors Constructor Description HostnameFilter(HostnameFilter.Mode mode, String matchTo)Constructor
-
-
-
Constructor Detail
-
HostnameFilter
public HostnameFilter(HostnameFilter.Mode mode, String matchTo)
Constructor- Parameters:
mode- the filter mode.matchTo- the match criteria.
-
-
Method Detail
-
accept
public boolean accept(URI uri)
accept- Specified by:
acceptin interfaceUriFilter- Parameters:
uri- the URI to test.- Returns:
- true if it matches the criteria else false.
- See Also:
UriFilter.accept(java.net.URI)
-
-