com.ca.jcs.cfg
Class HttpProxyConfiguration

java.lang.Object
  extended by 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

Constructor Summary
HttpProxyConfiguration()
           
 
Method Summary
 void afterPropertiesSet()
           
 CryptoService getCryptoService()
           
 HttpProxyServer getPrimaryProxyServer()
           
 List<HttpProxyServer> getProxyServers()
           
 boolean isEnabled()
           
 void setCryptoService(CryptoService cryptoService)
           
 void setEnabled(boolean enabled)
           
 void setProxyServers(List<HttpProxyServer> proxyServers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProxyConfiguration

public HttpProxyConfiguration()
Method Detail

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