Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ public List<Proxy> select(URI uri) {
return ProxyUtil.noProxyList();
}

@Override
public String toString() {
return "NoProxySelector{}";
}
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,10 @@ public List<Proxy> select(URI uri) {
return this.proxyList;
}

@Override
public String toString() {
return "FixedProxySelector{" +
"proxyList=" + proxyList +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@ public enum CacheScope {
CACHE_SCOPE_URL
}

@Override
public String toString() {
return "BufferedProxySelector{" +
"delegate=" + delegate +
", cache=" + cache +
", maxSize=" + maxSize +
", ttl=" + ttl +
", cacheScope=" + cacheScope +
'}';
}

private ProxySelector delegate;

private ConcurrentHashMap<String, CacheEntry> cache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,11 @@ public int size() {
return this.selectors.size();
}

@Override
public String toString() {
return "ProtocolDispatchSelector{" +
"selectors=" + selectors +
", fallbackSelector=" + fallbackSelector +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,12 @@ final void setRetryAfterMs(long retryAfterMs) {
this.retryAfterMs = retryAfterMs;
}

@Override
public String toString() {
return "ProxyListFallbackSelector{" +
"delegate=" + delegate +
", failedDelayCache=" + failedDelayCache +
", retryAfterMs=" + retryAfterMs +
'}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
this.delegate.connectFailed(uri, sa, ioe);
}

@Override
public String toString() {
return "ProxyBypassListSelector{" +
"delegate=" + delegate +
", whiteListFilter=" + whiteListFilter +
'}';
}

/*************************************************************************
* select
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,11 @@ public List<Proxy> select(URI uri) {
return ProxyUtil.noProxyList();
}

@Override
public String toString() {
return "UseProxyWhiteListSelector{" +
"delegate=" + delegate +
", whiteListFilter=" + whiteListFilter +
'}';
}
}