HttpServerUtilityWrapper Class
TOC
Collapse the table of content
Expand the table of content

HttpServerUtilityWrapper Class

 

Encapsulates the HTTP intrinsic object that provides helper methods for processing Web requests.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

System.Object
  System.Web.HttpServerUtilityBase
    System.Web.HttpServerUtilityWrapper

public class HttpServerUtilityWrapper : HttpServerUtilityBase

NameDescription
System_CAPS_pubmethodHttpServerUtilityWrapper(HttpServerUtility)

Initializes a new instance of the HttpServerUtilityWrapper class.

NameDescription
System_CAPS_pubpropertyMachineName

Gets the server's computer name.(Overrides HttpServerUtilityBase.MachineName.)

System_CAPS_pubpropertyScriptTimeout

Gets or sets the request time-out value in seconds.(Overrides HttpServerUtilityBase.ScriptTimeout.)

NameDescription
System_CAPS_pubmethodClearError()

Clears the most recent exception.(Overrides HttpServerUtilityBase.ClearError().)

System_CAPS_pubmethodCreateObject(String)

Creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID).(Overrides HttpServerUtilityBase.CreateObject(String).)

System_CAPS_pubmethodCreateObject(Type)

Creates a server instance of a COM object that is identified by the object's type.(Overrides HttpServerUtilityBase.CreateObject(Type).)

System_CAPS_pubmethodCreateObjectFromClsid(String)

Creates a server instance of a COM object that is identified by the object's class identifier (CLSID).(Overrides HttpServerUtilityBase.CreateObjectFromClsid(String).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodExecute(IHttpHandler, TextWriter, Boolean)

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.(Overrides HttpServerUtilityBase.Execute(IHttpHandler, TextWriter, Boolean).)

System_CAPS_pubmethodExecute(String)

Executes the handler for the specified virtual path in the context of the current process.(Overrides HttpServerUtilityBase.Execute(String).)

System_CAPS_pubmethodExecute(String, Boolean)

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.(Overrides HttpServerUtilityBase.Execute(String, Boolean).)

System_CAPS_pubmethodExecute(String, TextWriter)

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.(Overrides HttpServerUtilityBase.Execute(String, TextWriter).)

System_CAPS_pubmethodExecute(String, TextWriter, Boolean)

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.(Overrides HttpServerUtilityBase.Execute(String, TextWriter, Boolean).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetLastError()

Returns the most recent exception.(Overrides HttpServerUtilityBase.GetLastError().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHtmlDecode(String)

Decodes an HTML-encoded string and returns the decoded string.(Overrides HttpServerUtilityBase.HtmlDecode(String).)

System_CAPS_pubmethodHtmlDecode(String, TextWriter)

Decodes an HTML-encoded string and returns the results in a stream.(Overrides HttpServerUtilityBase.HtmlDecode(String, TextWriter).)

System_CAPS_pubmethodHtmlEncode(String)

HTML-encodes a string and returns the encoded string.(Overrides HttpServerUtilityBase.HtmlEncode(String).)

System_CAPS_pubmethodHtmlEncode(String, TextWriter)

HTML-encodes a string and sends the resulting output to an output stream.(Overrides HttpServerUtilityBase.HtmlEncode(String, TextWriter).)

System_CAPS_pubmethodMapPath(String)

Returns the physical file path that corresponds to the specified virtual path on the Web server.(Overrides HttpServerUtilityBase.MapPath(String).)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTransfer(IHttpHandler, Boolean)

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.(Overrides HttpServerUtilityBase.Transfer(IHttpHandler, Boolean).)

System_CAPS_pubmethodTransfer(String)

Terminates execution of the current process and starts execution of a page or handler that is specified with a URL.(Overrides HttpServerUtilityBase.Transfer(String).)

System_CAPS_pubmethodTransfer(String, Boolean)

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.(Overrides HttpServerUtilityBase.Transfer(String, Boolean).)

System_CAPS_pubmethodTransferRequest(String)

Asynchronously executes the end point at the specified URL.(Overrides HttpServerUtilityBase.TransferRequest(String).)

System_CAPS_pubmethodTransferRequest(String, Boolean)

Asynchronously executes the endpoint at the specified URL and specifies whether to clear the QueryString and Form collections.(Overrides HttpServerUtilityBase.TransferRequest(String, Boolean).)

System_CAPS_pubmethodTransferRequest(String, Boolean, String, NameValueCollection)

Asynchronously executes the endpoint at the specified URL by using the specified HTTP method and headers.(Overrides HttpServerUtilityBase.TransferRequest(String, Boolean, String, NameValueCollection).)

System_CAPS_pubmethodTransferRequest(String, Boolean, String, NameValueCollection, Boolean)
System_CAPS_pubmethodUrlDecode(String)

Decodes a URL-encoded string and returns the decoded string.(Overrides HttpServerUtilityBase.UrlDecode(String).)

System_CAPS_pubmethodUrlDecode(String, TextWriter)

Decodes a URL-encoded string and sends the resulting output to a stream.(Overrides HttpServerUtilityBase.UrlDecode(String, TextWriter).)

System_CAPS_pubmethodUrlEncode(String)

URL-encodes a string and returns the encoded string.(Overrides HttpServerUtilityBase.UrlEncode(String).)

System_CAPS_pubmethodUrlEncode(String, TextWriter)

URL-encodes a string and sends the resulting output to a stream.(Overrides HttpServerUtilityBase.UrlEncode(String, TextWriter).)

System_CAPS_pubmethodUrlPathEncode(String)

URL-encodes the path section of a URL string.(Overrides HttpServerUtilityBase.UrlPathEncode(String).)

System_CAPS_pubmethodUrlTokenDecode(String)

Decodes a URL string token into an equivalent byte array by using base64 digits.(Overrides HttpServerUtilityBase.UrlTokenDecode(String).)

System_CAPS_pubmethodUrlTokenEncode(Byte[])

Encodes a byte array into an equivalent string representation by using base64 digits, which makes it usable for transmission on the URL.(Overrides HttpServerUtilityBase.UrlTokenEncode(Byte[]).)

The HttpServerUtilityWrapper class derives from the HttpServerUtilityBase class and serves as a wrapper for the HttpServerUtility class. This class exposes the functionality of the HttpServerUtility class while also exposing the HttpServerUtilityBase type. The HttpServerUtilityBase class enables you to replace the original implementation of the HttpServerUtility class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft