com.sapportals.wcm.util.http
Class ProxyInfo
java.lang.Object
com.sapportals.wcm.util.http.ProxyInfo
- All Implemented Interfaces:
- IProxyInfo
public final class ProxyInfo
- extends Object
- implements IProxyInfo
An IWDProxyInfo objects keeps information about proxy servers for http
requests and determines if for a given hostname the proxy shall be used.
ProxyInfo uses the standard property names, e.g. http.proxyHost,
http.proxyPort and http.nonProxyHosts (or https.proxyHost). See the different
constructors for where the properties are looked up from.
Copyright (c) SAP AG 2001-2003
|
Constructor Summary |
ProxyInfo()
Creates a new object which initializes from System properties |
ProxyInfo(Properties props)
Creates a new object which initializes from given properties |
PROP_PROXY_HOST
public static final String PROP_PROXY_HOST
- See Also:
- Constant Field Values
PROP_PROXY_PORT
public static final String PROP_PROXY_PORT
- See Also:
- Constant Field Values
PROP_NO_PROXY_HOSTS
public static final String PROP_NO_PROXY_HOSTS
- See Also:
- Constant Field Values
PROP_PROXY_SYSTEM
public static final String PROP_PROXY_SYSTEM
- See Also:
- Constant Field Values
ProxyInfo
public ProxyInfo()
- Creates a new object which initializes from System properties
ProxyInfo
public ProxyInfo(Properties props)
- Creates a new object which initializes from given properties
- Parameters:
props - TBD: Description of the incoming method parameter
setProxyUri
public void setProxyUri(IHierarchicalUri base,
IHierarchicalUri proxy)
toString
public String toString()
- Overrides:
toString in class Object
getProxySystemID
public String getProxySystemID(String protocol)
- Specified by:
getProxySystemID in interface IProxyInfo
- Parameters:
protocol - TBD: Description of the incoming method parameter
- Returns:
- the system id of the proxy server (or null if none defined)
getProxyFor
public HttpUrl getProxyFor(HttpUrl server)
- Description copied from interface:
IProxyInfo
- Get URL of proxy for given server. Returns
null if no proxy is
defined for the server.
- Specified by:
getProxyFor in interface IProxyInfo
- Parameters:
server - url
- Returns:
- proxy url
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2014 SAP AG Complete Copyright Notice