HttpServerUtilityBase HttpServerUtilityBase HttpServerUtilityBase HttpServerUtilityBase Class

Definition

Serves as the base class for classes that provide helper methods for processing Web requests.

public ref class HttpServerUtilityBase abstract
public abstract class HttpServerUtilityBase
type HttpServerUtilityBase = class
Public MustInherit Class HttpServerUtilityBase
Inheritance
HttpServerUtilityBaseHttpServerUtilityBaseHttpServerUtilityBaseHttpServerUtilityBase
Derived

Remarks

The HttpServerUtilityBase class is an abstract class that contains the same members as the HttpServerUtility class. The HttpServerUtilityBase class enables you to create derived classes that are like the HttpServerUtility class, but that you can customize and that work outside the ASP.NET pipeline. When you perform unit testing, you typically use a derived class to implement members with customized behavior that fulfills the scenario you are testing.

The HttpServerUtilityWrapper class derives from the HttpServerUtilityBase class. The HttpServerUtilityWrapper class serves as a wrapper for the HttpServerUtility class. At run time, you typically use an instance of the HttpServerUtilityWrapper class to call members of the HttpServerUtility object.

Constructors

HttpServerUtilityBase() HttpServerUtilityBase() HttpServerUtilityBase() HttpServerUtilityBase()

Initializes the class for use by an inherited class instance. This constructor can only be called by an inherited class.

Properties

MachineName MachineName MachineName MachineName

When overridden in a derived class, gets the server's computer name.

ScriptTimeout ScriptTimeout ScriptTimeout ScriptTimeout

When overridden in a derived class, gets or sets the request time-out value in seconds.

Methods

ClearError() ClearError() ClearError() ClearError()

When overridden in a derived class, clears the most recent exception.

CreateObject(String) CreateObject(String) CreateObject(String) CreateObject(String)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID).

CreateObject(Type) CreateObject(Type) CreateObject(Type) CreateObject(Type)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's type.

CreateObjectFromClsid(String) CreateObjectFromClsid(String) CreateObjectFromClsid(String) CreateObjectFromClsid(String)

When overridden in a derived class, creates a server instance of a COM object that is identified by the object's class identifier (CLSID).

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Execute(IHttpHandler, TextWriter, Boolean) Execute(IHttpHandler, TextWriter, Boolean) Execute(IHttpHandler, TextWriter, Boolean) Execute(IHttpHandler, TextWriter, Boolean)

When overridden in a derived class, executes the specified handler in the context of the current process, using a TextWriter instance to capture output from the executed handler and a value that specifies whether to clear the QueryString and Form collections.

Execute(String) Execute(String) Execute(String) Execute(String)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process.

Execute(String, Boolean) Execute(String, Boolean) Execute(String, Boolean) Execute(String, Boolean)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process and specifies whether to clear the QueryString and Form collections.

Execute(String, TextWriter) Execute(String, TextWriter) Execute(String, TextWriter) Execute(String, TextWriter)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current process, using a TextWriter instance to capture output from the executed handler.

Execute(String, TextWriter, Boolean) Execute(String, TextWriter, Boolean) Execute(String, TextWriter, Boolean) Execute(String, TextWriter, Boolean)

When overridden in a derived class, executes the handler for the specified virtual path in the context of the current request, using a TextWriter instance to capture output from the page and a value that indicates whether to clear the QueryString and Form collections.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLastError() GetLastError() GetLastError() GetLastError()

When overridden in a derived class, returns the most recent exception.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HtmlDecode(String) HtmlDecode(String) HtmlDecode(String) HtmlDecode(String)

When overridden in a derived class, decodes an HTML-encoded string and returns the decoded string.

HtmlDecode(String, TextWriter) HtmlDecode(String, TextWriter) HtmlDecode(String, TextWriter) HtmlDecode(String, TextWriter)

When overridden in a derived class, decodes an HTML-encoded string and returns the results in a stream.

HtmlEncode(String) HtmlEncode(String) HtmlEncode(String) HtmlEncode(String)

When overridden in a derived class, HTML-encodes a string and returns the encoded string.

HtmlEncode(String, TextWriter) HtmlEncode(String, TextWriter) HtmlEncode(String, TextWriter) HtmlEncode(String, TextWriter)

When overridden in a derived class, HTML-encodes a string and sends the resulting output to an output stream.

MapPath(String) MapPath(String) MapPath(String) MapPath(String)

When overridden in a derived class, returns the physical file path that corresponds to the specified virtual path on the Web server.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Transfer(IHttpHandler, Boolean) Transfer(IHttpHandler, Boolean) Transfer(IHttpHandler, Boolean) Transfer(IHttpHandler, Boolean)

When overridden in a derived class, terminates execution of the current process and starts execution of a new request, using a custom HTTP handler and a value that specifies whether to clear the QueryString and Form collections.

Transfer(String) Transfer(String) Transfer(String) Transfer(String)

When overridden in a derived class, terminates execution of the current process and starts execution of a page or handler that is specified with a URL.

Transfer(String, Boolean) Transfer(String, Boolean) Transfer(String, Boolean) Transfer(String, Boolean)

When overridden in a derived class, terminates execution of the current page and starts execution of a different page or handler by using the specified URL and a value that specifies whether to clear the QueryString and Form collections.

TransferRequest(String) TransferRequest(String) TransferRequest(String) TransferRequest(String)

When overridden in a derived class, asynchronously executes the end point at the specified URL.

TransferRequest(String, Boolean) TransferRequest(String, Boolean) TransferRequest(String, Boolean) TransferRequest(String, Boolean)

When overridden in a derived class, asynchronously executes the endpoint at the specified URL and specifies whether to clear the QueryString and Form collections.

TransferRequest(String, Boolean, String, NameValueCollection) TransferRequest(String, Boolean, String, NameValueCollection) TransferRequest(String, Boolean, String, NameValueCollection) TransferRequest(String, Boolean, String, NameValueCollection)

When overridden in a derived class, asynchronously executes the endpoint at the specified URL by using the specified HTTP method and headers.

TransferRequest(String, Boolean, String, NameValueCollection, Boolean) TransferRequest(String, Boolean, String, NameValueCollection, Boolean) TransferRequest(String, Boolean, String, NameValueCollection, Boolean) TransferRequest(String, Boolean, String, NameValueCollection, Boolean)

When implemented in a derived class, asynchronously executes the end point at the specified URL, using the specified HTTP method, headers, path, and options to preserve form values and preserve the user identity.

UrlDecode(String) UrlDecode(String) UrlDecode(String) UrlDecode(String)

When overridden in a derived class, decodes a URL-encoded string and returns the decoded string.

UrlDecode(String, TextWriter) UrlDecode(String, TextWriter) UrlDecode(String, TextWriter) UrlDecode(String, TextWriter)

When overridden in a derived class, decodes a URL-encoded string and sends the resulting output to a stream.

UrlEncode(String) UrlEncode(String) UrlEncode(String) UrlEncode(String)

When overridden in a derived class, URL-encodes a string and returns the encoded string.

UrlEncode(String, TextWriter) UrlEncode(String, TextWriter) UrlEncode(String, TextWriter) UrlEncode(String, TextWriter)

When overridden in a derived class, URL-encodes a string and sends the resulting output to a stream.

UrlPathEncode(String) UrlPathEncode(String) UrlPathEncode(String) UrlPathEncode(String)

When overridden in a derived class, URL-encodes the path section of a URL string.

UrlTokenDecode(String) UrlTokenDecode(String) UrlTokenDecode(String) UrlTokenDecode(String)

When overridden in a derived class, decodes a URL string token into an equivalent byte array by using base64-encoded digits.

UrlTokenEncode(Byte[]) UrlTokenEncode(Byte[]) UrlTokenEncode(Byte[]) UrlTokenEncode(Byte[])

When overridden in a derived class, encodes a byte array into an equivalent string representation by using base64 digits, which makes it usable for transmission on the URL.

Applies to