SAP NetWeaver '04

com.sapportals.wcm.util.http
Class ProxyInfo

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.util.http.ProxyInfo
All Implemented Interfaces:
IProxyInfo

public final class ProxyInfo
extends java.lang.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


Field Summary
static java.lang.String PROP_NO_PROXY_HOSTS
           
static java.lang.String PROP_PROXY_HOST
           
static java.lang.String PROP_PROXY_PORT
           
static java.lang.String PROP_PROXY_SYSTEM
           
 
Constructor Summary
ProxyInfo()
          Creates a new object which initializes from System properties
ProxyInfo(java.util.Properties props)
          Creates a new object which initializes from given properties
 
Method Summary
 HttpUrl getProxyFor(HttpUrl server)
          Get URL of proxy for given server.
 java.lang.String getProxySystemID(java.lang.String protocol)
           
 void setProxyUri(IHierarchicalUri base, IHierarchicalUri proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PROXY_HOST

public static final java.lang.String PROP_PROXY_HOST

PROP_PROXY_PORT

public static final java.lang.String PROP_PROXY_PORT

PROP_NO_PROXY_HOSTS

public static final java.lang.String PROP_NO_PROXY_HOSTS

PROP_PROXY_SYSTEM

public static final java.lang.String PROP_PROXY_SYSTEM
Constructor Detail

ProxyInfo

public ProxyInfo()
Creates a new object which initializes from System properties

ProxyInfo

public ProxyInfo(java.util.Properties props)
Creates a new object which initializes from given properties
Parameters:
props - TBD: Description of the incoming method parameter
Method Detail

setProxyUri

public void setProxyUri(IHierarchicalUri base,
                        IHierarchicalUri proxy)

getProxySystemID

public java.lang.String getProxySystemID(java.lang.String protocol)
Specified by:
getProxySystemID in interface IProxyInfo
Following copied from interface: com.sapportals.wcm.util.http.IProxyInfo
Parameters:
scheme - 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
Following copied from interface: com.sapportals.wcm.util.http.IProxyInfo
Parameters:
server - url
Returns:
proxy url

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.