Class ProxyHostsPattern

java.lang.Object
org.graylog2.utilities.ProxyHostsPattern

public class ProxyHostsPattern extends Object
Hostname and IP address matcher implementation similar to what the JDK is using in the proxy server selector to support the http.nonProxyHosts property.

The main difference to the implementation in the JDK is, that this one is using "," as delimiter.

See: <https://docs.oracle.com/javase/8/docs/technotes/guides/net/proxies.html>

  • Method Details

    • getNoProxyHosts

      public String getNoProxyHosts()
    • matches

      public boolean matches(@Nullable String hostOrIp)
    • create

      public static ProxyHostsPattern create(String noProxyHosts)