|How to obtain instances of IProxyService [message #692575]
||Mon, 04 July 2011 18:56
| Paul Glezen
Registered: July 2009
I've written a Run Configuration launcher that for code that invokes HTTP calls through a |
SOCKS server. Since the launched process is not part of the workbench process, it does
not inherit the network proxy settings of the workbench. I'd like to communicate those
through the launch process, but I'm not sure how to get at them.
The org.eclipse.core.net.proxy.IProxyService indicates that instances may be fetched from
a Bundle instance. The closest method I can find on the OSGi BundleContext API is
ServiceReference getServiceReference(java.lang.String clazz)
I'm not sure if this is the right one or would I would pass as a Class name if it was.
Has anyone else out there worked with this before?
Powered by FUDForum
. Page generated in 0.01818 seconds