Class CommonWindowsSearchStrategy

java.lang.Object
com.github.markusbernhardt.proxy.search.desktop.win.CommonWindowsSearchStrategy
All Implemented Interfaces:
ProxySearchStrategy
Direct Known Subclasses:
IEProxySearchStrategy, WinProxySearchStrategy

public abstract class CommonWindowsSearchStrategy extends Object implements ProxySearchStrategy
Contains common methods used in search strategies for both Windows and IE.
  • Constructor Details

    • CommonWindowsSearchStrategy

      public CommonWindowsSearchStrategy()
  • Method Details

    • setByPassListOnSelector

      protected ProxySelector setByPassListOnSelector(String bypassList, ProtocolDispatchSelector ps)
      Installs the proxy exclude list on the given selector.
      Parameters:
      bypassList - the list of urls / hostnames to ignore.
      ps - the proxy selector to wrap.
      Returns:
      a wrapped proxy selector that will handle the bypass list.
    • parseProxyList

      protected Properties parseProxyList(String proxyString) throws ProxyException
      Parses the proxy list and splits it by protocol.
      Parameters:
      proxyString - the proxy list string
      Returns:
      Properties with separated settings.
      Throws:
      ProxyException - on parse error.
    • buildProtocolDispatchSelector

      protected ProtocolDispatchSelector buildProtocolDispatchSelector(Properties properties)