MCPcopy Index your code
hub / github.com/benfry/processing4 / handleProxy

Method handleProxy

app/src/processing/app/Preferences.java:140–149  ·  view source on GitHub ↗
(String protocol, String hostProp, String portProp)

Source from the content-addressed store, hash-verified

138
139
140 static void handleProxy(String protocol, String hostProp, String portProp) {
141 String proxyHost = get("proxy." + protocol + ".host");
142 String proxyPort = get("proxy." + protocol + ".port");
143 if (proxyHost != null && proxyHost.length() != 0 &&
144 proxyPort != null && proxyPort.length() != 0) {
145 System.setProperty(hostProp, proxyHost);
146 System.setProperty(portProp, proxyPort);
147 }
148
149 }
150
151
152 static public String getPreferencesPath() {

Callers 1

initMethod · 0.95

Calls 2

getMethod · 0.95
setPropertyMethod · 0.65

Tested by

no test coverage detected