World Wind Forums

Go Back   World Wind Forums > WorldWind JAVA forums > Development Help

Development Help Help for building applications or diagnosing problems with WWJ

Reply
 
Thread Tools Display Modes
Old 08-27-2012, 04:27 PM   #1
Unregistered
Guest
 
Posts: n/a
Default Change Proxy at runtime

I'm trying to change the proxy at runtime by calling:

Configuration.setValue(AVKey.URL_PROXY_H OST, proxy);
Configuration.setValue(AVKey.URL_PROXY_P ORT, port);

Before I set this, WorldWind tries retrieving tiles but is unable to because the proxy is not set. Once I do set the proxy, the retriever still tries to retrieve values as though the proxy wasn't set (trying to contact the server directly, rather than going through the proxy).

If I start worldwind with the proxy set, then remove the keys above, it immediately starts trying to retrieve tiles without using the proxy.

Any suggestions?

Thanks!
  Reply With Quote
Old 08-27-2012, 11:49 PM   #2
tag
WWJ Technical Manager
 
Join Date: May 2007
Location: Seattle
Posts: 1,027
tag is on a distinguished road
Default

As far as I can tell, the WW proxy code appears to be working. You could try setting those Configuration values in the worldwind.xml file or immediately as your program starts (before calling and WW methods), but you shouldn't need to do that.

Can anyone who is using proxies in WW verify that they are working?
tag is offline   Reply With Quote
Old 08-28-2012, 08:27 AM   #3
shitesh
Junior Member
 
Join Date: Jul 2012
Posts: 5
shitesh is on a distinguished road
Default

I've been using them, and they're working fine. I've set them the same way you described above while the program is running (I allow the user to enter the details manually), and I've also used
Code:
System.setProperty("java.net.useSystemProxies", "true");
in a static block before the program starts, and both seem to work well.

EDIT: Are you also setting the "AVKey.URL_PROXY_TYPE" key?
Code:
Configuration.setValue(AVKey.URL_PROXY_TYPE, "Proxy.Type.Http");
shitesh is offline   Reply With Quote
Reply

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WW1.3.2-Plugin: Layer Edit canosso Add-ons & Scripts 21 02-27-2010 04:37 AM
connecting to server fleak Technical Support 4 08-11-2009 09:37 PM
Small change enables automatically using authenticating proxy Mark Gray Developers' Corner 1 01-20-2009 03:04 AM
Proxy problems with one-way satellite broadband? jem Technical Support 8 09-30-2006 07:32 PM
Help improve HTTP proxy support gilles Technical Support 23 07-27-2005 09:30 PM


All times are GMT +1. The time now is 04:28 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.