com.sapportals.wcm.util.http

Class ProxyInfo

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


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

Field Detail

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
Constructor Detail

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
Method Detail

setProxyUri

public void setProxyUri(IHierarchicalUri base,
                        IHierarchicalUri proxy)

toString

public String toString()

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


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.