Class KdeProxySearchStrategy
java.lang.Object
com.github.markusbernhardt.proxy.search.desktop.kde.KdeProxySearchStrategy
- All Implemented Interfaces:
ProxySearchStrategy
Loads the KDE4 proxy settings from the KDE kioslaverc file. This will
load properties from the file
.kde/share/config/kioslaverc
starting from the current users home directory.The following settings are extracted from the section "[Proxy Settings]":
- AuthMode -> 0 = no auth., 1 = use login.
- ProxyType -> 0 = direct 1 = use fixed settings, 2 = use PAC, 3 = automatic (WPAD) , 4 = Use environment variables?
- Proxy Config Script -> URL to PAC file
- ftpProxy -> Fixed ftp proxy address e.g. http://www.ftp-proxy.com:8080
- httpProxy -> Fixed http proxy e.g http://www.http-proxy.com:8080
- httpsProxy -> Fixed https proxy e.g http://www.https-proxy.com:8080
- NoProxyFor -> Proxy white list
- ReversedException -> false = use NoProxyFor, true = revert meaning of the NoProxyFor list
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Constructor Summary
ConstructorsConstructorDescriptionProxySelector using the given parser.KdeProxySearchStrategy(KdeSettingsParser settingsParser) ProxySelector -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the printable name of the search strategy.Loads the proxy settings and initializes a proxy selector for the firefox proxy settings.
-
Constructor Details
-
KdeProxySearchStrategy
public KdeProxySearchStrategy()ProxySelector using the given parser.- See Also:
-
KdeProxySearchStrategy
ProxySelector- Parameters:
settingsParser- the KdeSettingsParser instance to use.- See Also:
-
-
Method Details
-
getProxySelector
Loads the proxy settings and initializes a proxy selector for the firefox proxy settings.- Specified by:
getProxySelectorin interfaceProxySearchStrategy- Returns:
- a configured ProxySelector, null if none is found.
- Throws:
ProxyException- on file reading error.
-
getName
Gets the printable name of the search strategy.- Specified by:
getNamein interfaceProxySearchStrategy- Returns:
- the printable name of the search strategy
-