getProxyServerPool

void session.getProxyServerPool ()

Description

Holds the proxy server pool object that allows proxies to be cycled through.

Parameters

  • This method does not receive any parameters.

Return Values

Returns true if there is an available proxy server pool.

Change Log

Version Description
4.5 Available for all editions.

Examples

Check if ProxyServerPool object exists.

 // If ProxyServerPool does not exist
 // Create a new ProxyServerPool object.
 if ( !session.getProxyServerPool() )
 {
  // The ProxyServerPool object will
  // control how screen-scraper interacts with proxy servers.
 
  proxyServerPool = new ProxyServerPool();
 
  // We give the current scraping session a reference to
  // the proxy pool. This step should ideally be done right
  // after the object is created (as in the previous step).

  session.setProxyServerPool( proxyServerPool );
 }