The way to set the HTTP(S) proxy in jclouds is detailed here:

http://jclouds.apache.org/reference/logging/#proxy

Everett


On Jun 24, 2014, at 8:58 AM, Jeremy Daggett 
<[email protected]<mailto:[email protected]>> wrote:

Hi Bhupendra,

All you need to do is set the proxy host and port for the JVM as described here:
http://stackoverflow.com/questions/120797/how-do-i-set-the-proxy-to-be-used-by-the-jvm

Hope that helps!

/jd


From: Bhupendra Singh 
<[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, June 24, 2014 at 5:53 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: How to set proxy

Hi ,

I am trying to access hp cloud object storage using jcloud api . I am writing 
following code to get context

BlobStoreContext context = 
ContextBuilder.newBuilder("hpcloud-objectstorage").credentials(identity, 
credential).buildView(BlobStoreContext.class);

But server where I am running this code has network restriction that’s why It 
cannot access hp cloud server and It is throwing unknown host exception.

ERROR com.ge.cloudstore.service.transfer.provider.hp.HPStorageProvider:71 :1: 
Error while account in HP ..org.jclouds.http.HttpResponseException: 
region-a.geo-1.identity.hpcloudsvc.com<http://1.identity.hpcloudsvc.com> 
connecting to POST 
https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens 
HTTP/1.1<https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens%20HTTP/1.1>

I want to set a proxy setting so that when my application try to connect with 
hp object storage server It uses those proxy setting .
Can I know how I can do this with code with jcloud api  ?

Thanks & Regards,
Bhupendra Pratap Singh
Sr. Software Engineer
Mobile: +91 9971279010


{SDG-Confidential}

________________________________
SDG Software India Pvt. Ltd.
A-10/11, Sector 2, NOIDA 201301, (UP), India
Website: www.sdgc.com<http://www.sdgc.com/>


"Please Note: The e-mail content is intended for the sole use of the intended 
recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY 
INFORMATION. Any review or reliance by others or copying or distribution or 
forwarding of any or all of the contents in this message is STRICTLY 
PROHIBITED. If you have erroneously received this message, please delete it 
immediately and notify the sender. Before opening any attachments please check 
them for viruses and defects."

Reply via email to