1 55 package org.jboss.axis.components.net; 56 57 import org.jboss.axis.AxisProperties; 58 59 60 63 public class DefaultHTTPTransportClientProperties 64 implements TransportClientProperties 65 { 66 67 private static final String emptyString = ""; 68 69 protected String proxyHost = null; 70 protected String nonProxyHosts = null; 71 protected String proxyPort = null; 72 protected String proxyUser = null; 73 protected String proxyPassword = null; 74 75 76 79 public String getProxyHost() 80 { 81 if (proxyHost == null) 82 { 83 proxyHost = AxisProperties.getProperty("http.proxyHost"); 84 if (proxyHost == null) 85 proxyHost = emptyString; 86 } 87 return proxyHost; 88 } 89 90 93 public String getNonProxyHosts() 94 { 95 if (nonProxyHosts == null) 96 { 97 nonProxyHosts = AxisProperties.getProperty("http.nonProxyHosts"); 98 if (nonProxyHosts == null) 99 nonProxyHosts = emptyString; 100 } 101 return nonProxyHosts; 102 } 103 104 107 public String getProxyPort() 108 { 109 if (proxyPort == null) 110 { 111 proxyPort = AxisProperties.getProperty("http.proxyPort"); 112 if (proxyPort == null) 113 proxyPort = emptyString; 114 } 115 return proxyPort; 116 } 117 118 121 public String getProxyUser() 122 { 123 if (proxyUser == null) 124 { 125 proxyUser = AxisProperties.getProperty("http.proxyUser"); 126 if (proxyUser == null) 127 proxyUser = emptyString; 128 } 129 return proxyUser; 130 } 131 132 135 public String getProxyPassword() 136 { 137 if (proxyPassword == null) 138 { 139 proxyPassword = AxisProperties.getProperty("http.proxyPassword"); 140 if (proxyPassword == null) 141 proxyPassword = emptyString; 142 } 143 return proxyPassword; 144 } 145 } 146 | Popular Tags |