\Proxy_Controller
Proxy controller delegates HTTP requests to dedicated web servers.
To avoid any cross-domain issues within the map application (i.e. requesting
XML data from features shown on the map via AJAX calls), we use the
proxy controller which delegates requests to the provided URL.
Synopsis
class Proxy_Controller
extends Controller
{
- // members
- private static array $allowed_actions = ;
- protected static array $allowed_host = ;
- // methods
- public static void set_allowed_host()
- public static array get_allowed_host()
- public the dorequest()
Hierarchy
Extends
- Controller
Members
private
- $allowed_actions
protected
- $allowed_host
Methods
public
- dorequest() — This method passes through an HTTP request to another webserver.
- get_allowed_host() — Returns an array of allowed hosts.
- set_allowed_host() — Sets the array of allowed hosts.