Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 7664a19

Browse files
committed
sorted members
1 parent 349efff commit 7664a19

File tree

1 file changed

+53
-52
lines changed

1 file changed

+53
-52
lines changed

modules/core/src/main/java/io/wcm/qa/galenium/configuration/GaleniumConfiguration.java

Lines changed: 53 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ public final class GaleniumConfiguration {
6666
private static final String SYSTEM_PROPERTY_NAME_HEADLESS = "galenium.headless";
6767
private static final String SYSTEM_PROPERTY_NAME_HTTP_PASS = "io.wcm.qa.http.pass";
6868
private static final String SYSTEM_PROPERTY_NAME_HTTP_USER = "io.wcm.qa.http.user";
69+
private static final String SYSTEM_PROPERTY_NAME_HTTPS_PROXY_HOST = "galenium.webdriver.https.proxyHost";
70+
private static final String SYSTEM_PROPERTY_NAME_HTTPS_PROXY_PORT = "galenium.webdriver.https.proxyPort";
6971
private static final String SYSTEM_PROPERTY_NAME_LAZY_DRIVER = "galenium.webdriver.lazy";
7072
private static final String SYSTEM_PROPERTY_NAME_MEDIA_QUERY_HEIGHT = "galenium.mediaquery.height";
7173
private static final String SYSTEM_PROPERTY_NAME_MEDIA_QUERY_PROPERTIES = "galenium.mediaquery.properties";
@@ -98,8 +100,6 @@ public final class GaleniumConfiguration {
98100
private static final String SYSTEM_PROPERTY_NAME_WEB_DRIVER_SSL_REFUSE = "galenium.webdriver.ssl.refuse";
99101
private static final String SYSTEM_PROPERTY_NAME_WEB_DRIVER_SSL_TRUSTED_ONLY = "galenium.webdriver.ssl.trusted";
100102
private static final String SYSTEM_PROPERTY_NAME_WEB_DRIVER_TIMEOUT = "galenium.webdriver.timeout";
101-
private static final String SYSTEM_PROPERTY_NAME_HTTPS_PROXY_HOST = "galenium.webdriver.https.proxyHost";
102-
private static final String SYSTEM_PROPERTY_NAME_HTTPS_PROXY_PORT = "galenium.webdriver.https.proxyPort";
103103

104104
private GaleniumConfiguration() {
105105
// do not instantiate
@@ -511,6 +511,56 @@ public static String getHttpPass() {
511511
return asString(SYSTEM_PROPERTY_NAME_HTTP_PASS);
512512
}
513513

514+
/**
515+
* Https Proxy Host Configuration for Webdriver or BrowserMobProxy
516+
* <ul>
517+
* <li>Key:
518+
*
519+
* <pre>
520+
* galenium.webdriver.https.proxyHost
521+
* </pre>
522+
*
523+
* </li>
524+
* <li>
525+
* Default:
526+
*
527+
* <pre>
528+
* null
529+
* </pre>
530+
*
531+
* </li>
532+
* </ul>
533+
* @return null or https proxy host
534+
*/
535+
public static String getHttpsProxyHost() {
536+
return asString(SYSTEM_PROPERTY_NAME_HTTPS_PROXY_HOST, null);
537+
}
538+
539+
/**
540+
* Https Proxy Port Configuration for Webdriver or BrowserMobProxy
541+
* <ul>
542+
* <li>Key:
543+
*
544+
* <pre>
545+
* galenium.webdriver.https.proxyPort
546+
* </pre>
547+
*
548+
* </li>
549+
* <li>
550+
* Default:
551+
*
552+
* <pre>
553+
* null
554+
* </pre>
555+
*
556+
* </li>
557+
* </ul>
558+
* @return null or https proxy port
559+
*/
560+
public static String getHttpsProxyPort() {
561+
return asString(SYSTEM_PROPERTY_NAME_HTTPS_PROXY_PORT, null);
562+
}
563+
514564
/**
515565
* HTTP username to use in HTTP basic auth.
516566
* <ul>
@@ -843,6 +893,7 @@ public static boolean isChromeHeadlessWindowsWorkaround() {
843893
return asBoolean(SYSTEM_PROPERTY_NAME_CHROME_HEADLESS_WINDOWS_WORKAROUND);
844894
}
845895

896+
846897
/**
847898
* Headless Chrome Windows workaround flag.
848899
* <ul>
@@ -897,7 +948,6 @@ public static boolean isHeadless() {
897948
return asBoolean(SYSTEM_PROPERTY_NAME_HEADLESS);
898949
}
899950

900-
901951
/**
902952
* Lazy web driver intialization takes control away from WebDriverListener and lets the test itself decide
903953
* when or whether to initialize a webdriver.
@@ -1281,55 +1331,6 @@ public static boolean isWebDriverRefuseSslCertificates() {
12811331
return asBoolean(SYSTEM_PROPERTY_NAME_WEB_DRIVER_SSL_REFUSE);
12821332
}
12831333

1284-
/**
1285-
* Https Proxy Host Configuration for Webdriver or BrowserMobProxy
1286-
* <ul>
1287-
* <li>Key:
1288-
*
1289-
* <pre>
1290-
* galenium.webdriver.https.proxyHost
1291-
* </pre>
1292-
*
1293-
* </li>
1294-
* <li>
1295-
* Default:
1296-
*
1297-
* <pre>
1298-
* null
1299-
* </pre>
1300-
*
1301-
* </li>
1302-
* </ul>
1303-
* @return null or https proxy host
1304-
*/
1305-
public static String getHttpsProxyHost() {
1306-
return asString(SYSTEM_PROPERTY_NAME_HTTPS_PROXY_HOST, null);
1307-
}
1308-
1309-
/**
1310-
* Https Proxy Port Configuration for Webdriver or BrowserMobProxy
1311-
* <ul>
1312-
* <li>Key:
1313-
*
1314-
* <pre>
1315-
* galenium.webdriver.https.proxyPort
1316-
* </pre>
1317-
*
1318-
* </li>
1319-
* <li>
1320-
* Default:
1321-
*
1322-
* <pre>
1323-
* null
1324-
* </pre>
1325-
*
1326-
* </li>
1327-
* </ul>
1328-
* @return null or https proxy port
1329-
*/
1330-
public static String getHttpsProxyPort() {
1331-
return asString(SYSTEM_PROPERTY_NAME_HTTPS_PROXY_PORT, null);
1332-
}
13331334
private static boolean asBoolean(String systemPropertyName) {
13341335
return Boolean.getBoolean(systemPropertyName);
13351336
}

0 commit comments

Comments
 (0)