/** @hide */ ECode CProxy::SetHttpProxySystemProperty( /* [in] */ IProxyProperties* proxyp) { String host; String port; String exclList; if (proxyp != NULL) { proxyp->GetHost(&host); Int32 portNum; proxyp->GetPort(&portNum); port = StringUtils::Int32ToString(portNum); proxyp->GetExclusionList(&exclList); } SetHttpProxySystemProperty(host, port, exclList); return NOERROR; }
ECode Proxy::SetHttpProxySystemProperty( /* [in] */ IProxyInfo* proxyp) { String host; String port; String exclList; AutoPtr<IUri> pacFileUrl; Uri::GetEMPTY((IUri**)&pacFileUrl); if (proxyp != NULL) { proxyp->GetHost(&host); Int32 portNum; proxyp->GetPort(&portNum); port = StringUtils::ToString(portNum); proxyp->GetExclusionListAsString(&exclList); proxyp->GetPacFileUrl((IUri**)&pacFileUrl); } SetHttpProxySystemProperty(host, port, exclList, pacFileUrl); return NOERROR; }