HTTPConnection::setAuthenticator PHP Method

setAuthenticator() public method

public setAuthenticator ( HTTPAuthenticator $httpAuthenticator )
$httpAuthenticator HTTPAuthenticator
    public function setAuthenticator(HTTPAuthenticator $httpAuthenticator)
    {
        $this->httpAuthenticator = $httpAuthenticator;
    }

Usage Example

コード例 #1
0
ファイル: cPanel.php プロジェクト: ricardobylife/cpanel
 /**
  * @brief	Conexão HTTP
  * @details	Recupera um objeto de conexão HTTP para ser utilizado
  * nas chamadas às operações da API.
  * @return	HTTPConnection
  */
 public function getHTTPConnection()
 {
     $httpConnection = new HTTPConnection();
     $httpConnection->setAuthenticator($this->httpAuthenticator);
     $httpConnection->setCookieManager(new HTTPCookieManager());
     $httpConnection->initialize($this->host, $this->secure, $this->port);
     return $httpConnection;
 }
All Usage Examples Of HTTPConnection::setAuthenticator