-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.github.sparsick.testcontainers.gitserver.http; | ||
|
||
import java.util.Objects; | ||
|
||
public class HttpProxySetting { | ||
|
||
private String httpProxy; | ||
private String httpsProxy; | ||
private String noProxy; | ||
|
||
public HttpProxySetting(String httpProxy, String httpsProxy, String noProxy) { | ||
this.httpProxy = httpProxy; | ||
this.httpsProxy = httpsProxy; | ||
this.noProxy = noProxy; | ||
} | ||
|
||
public String getHttpProxy() { | ||
return httpProxy; | ||
} | ||
|
||
public String getHttpsProxy() { | ||
return httpsProxy; | ||
} | ||
|
||
public String getNoProxy() { | ||
return noProxy; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
HttpProxySetting that = (HttpProxySetting) o; | ||
Check warning on line 33 in testcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java Codecov / codecov/patchtestcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java#L33
|
||
return Objects.equals(httpProxy, that.httpProxy) && Objects.equals(httpsProxy, that.httpsProxy) && Objects.equals(noProxy, that.noProxy); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(httpProxy, httpsProxy, noProxy); | ||
Check warning on line 39 in testcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java Codecov / codecov/patchtestcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java#L39
|
||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "HttpProxySetting{" + | ||
Check warning on line 44 in testcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java Codecov / codecov/patchtestcontainers-gitserver/src/main/java/com/github/sparsick/testcontainers/gitserver/http/HttpProxySetting.java#L44
|
||
"httpProxy='" + httpProxy + '\'' + | ||
", httpsProxy='" + httpsProxy + '\'' + | ||
", noProxy='" + noProxy + '\'' + | ||
'}'; | ||
} | ||
} |