Package org.ossreviewtoolkit.utils.ort
Class OrtProxySelectorKt
-
- All Implemented Interfaces:
public final class OrtProxySelectorKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_PROXY_PORT
-
Method Summary
Modifier and Type Method Description final static Pair<Proxy, PasswordAuthentication>determineProxyFromProperties(String protocol)Determine settings for an authenticated proxy for the given protocol from commonly set system properties. final static Pair<Proxy, PasswordAuthentication>determineProxyFromUrl(String url)Return a proxy with optional password authentication as encoded in the url, or null if the string does not represent a URL with a supported proxy type. final static Proxy.TypetoProxyType(String $self)Return the proxy type encoded in the string, or null if the string does not represent a supported proxy type. -
-
Method Detail
-
determineProxyFromProperties
final static Pair<Proxy, PasswordAuthentication> determineProxyFromProperties(String protocol)
Determine settings for an authenticated proxy for the given protocol from commonly set system properties.
-
determineProxyFromUrl
final static Pair<Proxy, PasswordAuthentication> determineProxyFromUrl(String url)
Return a proxy with optional password authentication as encoded in the url, or null if the string does not represent a URL with a supported proxy type.
-
toProxyType
final static Proxy.Type toProxyType(String $self)
Return the proxy type encoded in the string, or null if the string does not represent a supported proxy type.
-
-
-
-