com.ca.jcs.cfg
Class HttpProxyConfiguration
java.lang.Object
com.ca.jcs.cfg.HttpProxyConfiguration
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
public class HttpProxyConfiguration
- extends Object
- implements org.springframework.beans.factory.InitializingBean
Configuration for HTTP proxy servers to be used by connectors that require it.
The instance of this configuration is normally defined in server_jcs.xml but
the actual values are set by the installer in the override properties file,
server_jcs.properties.
Example:
httpProxyConfiguration.enabled=true
httpProxyConfiguration.proxyServers.1.ref=httpProxyAlternate1
- Author:
- fittr01
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpProxyConfiguration
public HttpProxyConfiguration()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
Exception
isEnabled
public boolean isEnabled()
- Returns:
- Whether any HTTP proxy should be used
setEnabled
public void setEnabled(boolean enabled)
- Parameters:
enabled - the enabled to set
getProxyServers
public List<HttpProxyServer> getProxyServers()
- Returns:
- List of HTTP proxy servers, in order of priority
setProxyServers
public void setProxyServers(List<HttpProxyServer> proxyServers)
- Parameters:
proxyServers - the proxyServers to set
getPrimaryProxyServer
public HttpProxyServer getPrimaryProxyServer()
- Returns:
- The primary proxy server, or null if no servers are defined
getCryptoService
public CryptoService getCryptoService()
- Returns:
- the cryptoService
setCryptoService
public void setCryptoService(CryptoService cryptoService)
- Parameters:
cryptoService - the cryptoService to set
Created 2011-07-14 13:27 EST