Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Sys.Net.WebRequestExecutor Class

Provides the abstract base class from which network executors derive.

Namespace: Sys.Net

Inherits: None

Syntax

MyExecutor.registerClass('MyExecutor', Sys.Net.WebRequestExecutor);

Members

Name

Description

abort Method

Stops additional processing of the current request.

executeRequest Method

Executes a Web request.

getAllResponseHeaders Method

Gets all the response headers for the current request.

getResponseHeader Method

Gets the value of a specific response header based on the header's name.

aborted Property

Gets a value indicating whether the request associated with the executor was aborted.

responseAvailable Property

Gets a value indicating whether the request completed successfully.

responseData Property

Gets the text representation of the response body.

started Property

Gets a value indicating whether the executor has started processing the request.

statusCode Property

Gets a success status code.

statusText Property

Gets status information about a request that completed successfully.

timedOut Property

Gets a value indicating whether the request timed out.

xml Property

Attempts to get the response to the current request as an XMLDOM object.

webRequest Property

Gets the WebRequest object associated with the executor.

Remarks

The Sys.Net.WebRequestExecutor class is an abstract base class. You cannot instantiate it; instead, you must derive from it by implementing a network executor.

Network requests issued by using the asynchronous communication layer flow through a network executor. Usually, executors interface with the network. However, you could create a storage executor that interacts with a local database instead of the network, or one that performs other work that involves an external resource.

The following example shows how the Sys.Net.XMLHttpExecutor class derives from the WebRequestExecutor class.

Sys.Net.XMLHttpExecutor.registerClass('Sys.Net.XMLHttpExecutor', 
   Sys.Net.WebRequestExecutor);