MCPcopy Index your code
hub / github.com/processing/processing / handleProxy

Method handleProxy

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

Source from the content-addressed store, hash-verified

128
129
130 static void handleProxy(String protocol, String hostProp, String portProp) {
131 String proxyHost = get("proxy." + protocol + ".host");
132 String proxyPort = get("proxy." + protocol + ".port");
133 if (proxyHost != null && proxyHost.length() != 0 &&
134 proxyPort != null && proxyPort.length() != 0) {
135 System.setProperty(hostProp, proxyHost);
136 System.setProperty(portProp, proxyPort);
137 }
138
139 }
140
141
142 static public String getPreferencesPath() {

Callers 1

initMethod · 0.95

Calls 2

getMethod · 0.95
setPropertyMethod · 0.65

Tested by

no test coverage detected