Skip to content

Commit 3e147e0

Browse files
author
Harshit Vasu
committed
Added javadoc for setProxy
1 parent fc3c0d3 commit 3e147e0

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/main/java/com/browserstack/client/BrowserStackClient.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ public BrowserStackClient(String baseUrl, String username, String accessKey) {
105105
this.accessKey = accessKey.trim();
106106
}
107107

108-
public void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword) {
108+
/**
109+
* Provides configuration of proxy for http requests.
110+
* Calling the method will modify the HTTP_TRANSPORT and set the requestFactory with configuration for proxy and authentication
111+
*/
112+
113+
public void setProxy(final String proxyHost, final int proxyPort, final String proxyUsername, final String proxyPassword) {
109114

110115
if (proxyHost == null || proxyUsername == null || proxyPassword == null) {
111116
return;

src/main/java/com/browserstack/client/BrowserStackClientInterface.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ List<Session> getSessions(String buildId, BuildStatus status, int limit)
3838
List<Session> getSessions(String buildId, BuildStatus status)
3939
throws BuildNotFound, BrowserStackException;
4040

41-
void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword) throws BrowserStackException;
41+
void setProxy(String proxyHost, int proxyPort, String proxyUsername, String proxyPassword);
4242

4343
}

0 commit comments

Comments
 (0)