Search in sources :

Example 1 with Proxy

use of com.cloud.utils.net.Proxy in project cloudstack by apache.

the class BaseImageStoreDriverImpl method getHttpProxy.

protected Proxy getHttpProxy() {
    if (_proxy == null) {
        return null;
    }
    try {
        URI uri = new URI(_proxy);
        Proxy prx = new Proxy(uri);
        return prx;
    } catch (URISyntaxException e) {
        return null;
    }
}
Also used : Proxy(com.cloud.utils.net.Proxy) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI)

Example 2 with Proxy

use of com.cloud.utils.net.Proxy in project cloudstack by apache.

the class DownloadMonitorImpl method getHttpProxy.

private Proxy getHttpProxy() {
    if (_proxy == null) {
        return null;
    }
    try {
        URI uri = new URI(_proxy);
        Proxy prx = new Proxy(uri);
        return prx;
    } catch (URISyntaxException e) {
        return null;
    }
}
Also used : Proxy(com.cloud.utils.net.Proxy) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI)

Example 3 with Proxy

use of com.cloud.utils.net.Proxy in project cosmic by MissionCriticalCloud.

the class DownloadMonitorImpl method getHttpProxy.

private Proxy getHttpProxy() {
    if (_proxy == null) {
        return null;
    }
    try {
        final URI uri = new URI(_proxy);
        final Proxy prx = new Proxy(uri);
        return prx;
    } catch (final URISyntaxException e) {
        return null;
    }
}
Also used : Proxy(com.cloud.utils.net.Proxy) URISyntaxException(java.net.URISyntaxException) URI(java.net.URI)

Aggregations

Proxy (com.cloud.utils.net.Proxy)3 URI (java.net.URI)3 URISyntaxException (java.net.URISyntaxException)3