KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sslexplorer > agent > client > BrowserProxySettings


1 /* HEAD */
2 package com.sslexplorer.agent.client;
3
4
5 /**
6  * Encapsulate a vendors <i>Web Browser</i> such as IE or Firefox and its proxy
7  * settings.
8  */

9 public class BrowserProxySettings {
10
11     // Private instance variables
12

13     private String JavaDoc browser;
14     private ProxyInfo[] proxies;
15     private String JavaDoc[] bypassAddr;
16
17     /**
18      * Get the browser name.
19      *
20      * @return browser name
21      */

22     public String JavaDoc getBrowser() {
23         return browser;
24     }
25
26     /**
27      * Set the browser name.
28      *
29      * @param browser browser name
30      */

31     public void setBrowser(String JavaDoc browser) {
32         this.browser = browser;
33     }
34
35     /**
36      * Get a string array of all address that should bypass the proxy server.
37      * Wildcards may or may not be included. An empty array and all
38      * communication will occurr through the proxy servers.
39      *
40      * @return Returns the bypassAddr.
41      */

42     public String JavaDoc[] getBypassAddr() {
43         return bypassAddr;
44     }
45
46     /**
47      * Set a string array of all address that should bypass the proxy server.
48      * Wildcards may or may not be included. An empty array and all
49      * communication will occurr through the proxy servers.
50      *
51      * @param bypassAddr Returns the bypassAddr.
52      */

53     public void setBypassAddr(String JavaDoc[] bypassAddr) {
54         this.bypassAddr = bypassAddr;
55     }
56
57     /**
58      * Get an array of all proxy servers configured for this browser.
59      *
60      * @return proxy servers
61      */

62     public ProxyInfo[] getProxies() {
63         return proxies;
64     }
65
66     /**
67      * Set an array of all proxy servers configured for this browser.
68      *
69      * @param proxies proxy servers
70      */

71     public void setProxies(ProxyInfo[] proxies) {
72         this.proxies = proxies;
73     }
74 }
75
Popular Tags