Ejemplo n.º 1
0
/** @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;
}
Ejemplo n.º 2
0
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;
}