C# Class Bloom.web.ExternalLinkController

Handles GET requests to open a page, shipped with Bloom in an external browser. For other web resources, just use http/https and the c# Browser class will intercept and open the browser. For html pages shipped with bloom, use this controller by writing
Show file Open project: BloomBooks/BloomDesktop

Public Methods

Method Description
HandleRequest ( ApiRequest request ) : void

Handles a url starting with api/kPrefix by stripping off that prefix, searching for the file named in the remainder of the url, and opening it in some browser (passing on any anchor specified).

RegisterWithServer ( EnhancedImageServer server ) : void

Private Methods

Method Description
TryGetDefaultBrowserPathWindowsOnly ( string &defaultBrowserPath ) : bool

Method Details

HandleRequest() public static method

Handles a url starting with api/kPrefix by stripping off that prefix, searching for the file named in the remainder of the url, and opening it in some browser (passing on any anchor specified).
public static HandleRequest ( ApiRequest request ) : void
request Bloom.Api.ApiRequest
return void

RegisterWithServer() public static method

public static RegisterWithServer ( EnhancedImageServer server ) : void
server Bloom.Api.EnhancedImageServer
return void