Friday Feb 11, 2011

New Network Settings API in NetBeans 7.0 RCP

Network Settings API has been recently added into NetBeans 7.0 RCP to allow RCP users to access a network proxy setting. The native launchers of NetBeans Platform detects network settings, mainly a network proxy settings, from operating system. This setting if found any, is the initial for NetBeans plugins when accessing the network. End-users of application (or IDE) can customize these settings in Tools|Options dialog.

A note: Since Beta2 NetBeans 7.0 can interpret also PAC like setting, i.e. automatic proxy configuration URL which provides proxies dynamically according to asked URL.

Network settings are absolutely transparent to plugins built on RCP, these plugins don't need to care of it, RCP installs own java.net.ProxySelector which returns network proxies according of settings in NetBeans and plugins don't need to specify a proxy. However, in some cases a plugin need to know the network setting (e.g. if they are using a external tool and need to setup it for accessing network). For these cases there is Network Settings API as part of Utilities API.

Using this API is quite easy, just call NetworkSettings.getProxyHost(java.net.URI u) for given URI to get a host name of network proxy, use similar method for getting a proxy port. In case if a proxy requires user authentication, there are the methods for get username and password.

Friday Jun 13, 2008

A secret tooltip in Options dialog

Now that we have been speaking of tooltips in NetBeans IDE (How do you like balloon-like tooltip?) I remembered a tooltip which I have recently added into NetBeans 6.1 IDE.

There is a new tooltip in Tools|Options dialog in General page over Use System Proxy Settings:


This tooltip shows a Network HTTP Proxy which was detected from user's operating system. It can help users to see what proxy is active right now, or to make them sure the right one proxy was found.

Just a note: If NetBeans launcher cannot found information if a proxy is active in user's system or it doesn't, the Use System Proxy Settings will be disabled.

In the case of launcher found that no proxy is currently active, the tooltip will show a message 'Direct connection'


What do you think of it? Doesn't it make sense?

And in general, what are your experiences with using Network Proxy support in NetBeans IDE? Do you need to do setup Network Proxy manually? Or, you don't care about Network Proxy because it works out-of-box? :-)

Thanks for your opinion.

About

Rechtacek's

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today