C# Class Dev2.Studio.Core.AppResources.Browsers.BrowserHandler

Inheritance: ILoadHandler, ILifeSpanHandler, IRequestHandler
显示文件 Open project: Warewolf-ESB/Warewolf Class Usage Examples

Public Methods

Method Description
BrowserHandler ( ) : System
BrowserHandler ( IBrowserPopupController popupController ) : System
GetAuthCredentials ( IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, string &username, string &password ) : bool
GetDownloadHandler ( IWebBrowser browser, string mimeType, string fileName, long contentLength, IDownloadHandler &handler ) : bool
OnBeforeBrowse ( IWebBrowser browser, IRequest request, NavigationType naigationvType, bool isRedirect ) : bool
OnBeforeClose ( IWebBrowser browser ) : void
OnBeforePopup ( IWebBrowser browser, string url, int &x, int &y, int &width, int &height ) : bool
OnBeforeResourceLoad ( IWebBrowser browser, IRequestResponse requestResponse ) : bool
OnLoadError ( IWebBrowser browser, string url, int errorCode, string &errorText ) : bool
OnResourceResponse ( IWebBrowser browser, string url, int status, string statusText, string mimeType, WebHeaderCollection headers ) : void

Private Methods

Method Description
ShowErrorPage ( IWebBrowser browser, string pageUri ) : void

Method Details

BrowserHandler() public method

public BrowserHandler ( ) : System
return System

BrowserHandler() public method

public BrowserHandler ( IBrowserPopupController popupController ) : System
popupController IBrowserPopupController
return System

GetAuthCredentials() public method

public GetAuthCredentials ( IWebBrowser browser, bool isProxy, string host, int port, string realm, string scheme, string &username, string &password ) : bool
browser IWebBrowser
isProxy bool
host string
port int
realm string
scheme string
username string
password string
return bool

GetDownloadHandler() public method

public GetDownloadHandler ( IWebBrowser browser, string mimeType, string fileName, long contentLength, IDownloadHandler &handler ) : bool
browser IWebBrowser
mimeType string
fileName string
contentLength long
handler IDownloadHandler
return bool

OnBeforeBrowse() public method

public OnBeforeBrowse ( IWebBrowser browser, IRequest request, NavigationType naigationvType, bool isRedirect ) : bool
browser IWebBrowser
request IRequest
naigationvType NavigationType
isRedirect bool
return bool

OnBeforeClose() public method

public OnBeforeClose ( IWebBrowser browser ) : void
browser IWebBrowser
return void

OnBeforePopup() public method

public OnBeforePopup ( IWebBrowser browser, string url, int &x, int &y, int &width, int &height ) : bool
browser IWebBrowser
url string
x int
y int
width int
height int
return bool

OnBeforeResourceLoad() public method

public OnBeforeResourceLoad ( IWebBrowser browser, IRequestResponse requestResponse ) : bool
browser IWebBrowser
requestResponse IRequestResponse
return bool

OnLoadError() public method

public OnLoadError ( IWebBrowser browser, string url, int errorCode, string &errorText ) : bool
browser IWebBrowser
url string
errorCode int
errorText string
return bool

OnResourceResponse() public method

public OnResourceResponse ( IWebBrowser browser, string url, int status, string statusText, string mimeType, WebHeaderCollection headers ) : void
browser IWebBrowser
url string
status int
statusText string
mimeType string
headers System.Net.WebHeaderCollection
return void