1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
|
//------------------------------------------------------------------------------
// <copyright file="HttpServerUtilityWrapper.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.Web {
using System.Collections.Specialized;
using System.IO;
using System.Runtime.CompilerServices;
[TypeForwardedFrom("System.Web.Abstractions, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
public class HttpServerUtilityWrapper : HttpServerUtilityBase {
private HttpServerUtility _httpServerUtility;
public HttpServerUtilityWrapper(HttpServerUtility httpServerUtility) {
if (httpServerUtility == null) {
throw new ArgumentNullException("httpServerUtility");
}
_httpServerUtility = httpServerUtility;
}
public override Exception GetLastError() {
return _httpServerUtility.GetLastError();
}
public override string MachineName {
get {
return _httpServerUtility.MachineName;
}
}
public override int ScriptTimeout {
get {
return _httpServerUtility.ScriptTimeout;
}
set {
_httpServerUtility.ScriptTimeout = value;
}
}
public override void ClearError() {
_httpServerUtility.ClearError();
}
public override object CreateObject(string progID) {
return _httpServerUtility.CreateObject(progID);
}
public override object CreateObject(Type type) {
return _httpServerUtility.CreateObject(type);
}
public override object CreateObjectFromClsid(string clsid) {
return _httpServerUtility.CreateObjectFromClsid(clsid);
}
public override void Execute(string path) {
_httpServerUtility.Execute(path);
}
public override void Execute(string path, TextWriter writer) {
_httpServerUtility.Execute(path, writer);
}
public override void Execute(string path, bool preserveForm) {
_httpServerUtility.Execute(path, preserveForm);
}
public override void Execute(string path, TextWriter writer, bool preserveForm) {
_httpServerUtility.Execute(path, writer, preserveForm);
}
public override void Execute(IHttpHandler handler, TextWriter writer, bool preserveForm) {
_httpServerUtility.Execute(handler, writer, preserveForm);
}
public override string HtmlDecode(string s) {
return _httpServerUtility.HtmlDecode(s);
}
public override void HtmlDecode(string s, TextWriter output) {
_httpServerUtility.HtmlDecode(s, output);
}
public override string HtmlEncode(string s) {
return _httpServerUtility.HtmlEncode(s);
}
public override void HtmlEncode(string s, TextWriter output) {
_httpServerUtility.HtmlEncode(s, output);
}
public override string MapPath(string path) {
return _httpServerUtility.MapPath(path);
}
public override void Transfer(string path, bool preserveForm) {
_httpServerUtility.Transfer(path, preserveForm);
}
public override void Transfer(string path) {
_httpServerUtility.Transfer(path);
}
public override void Transfer(IHttpHandler handler, bool preserveForm) {
_httpServerUtility.Transfer(handler, preserveForm);
}
public override void TransferRequest(string path) {
_httpServerUtility.TransferRequest(path);
}
public override void TransferRequest(string path, bool preserveForm) {
_httpServerUtility.TransferRequest(path, preserveForm);
}
public override void TransferRequest(string path, bool preserveForm, string method, NameValueCollection headers) {
_httpServerUtility.TransferRequest(path, preserveForm, method, headers);
}
public override void TransferRequest(string path, bool preserveForm, string method, NameValueCollection headers, bool preserveUser) {
_httpServerUtility.TransferRequest(path, preserveForm, method, headers, preserveUser);
}
public override string UrlDecode(string s) {
return _httpServerUtility.UrlDecode(s);
}
public override void UrlDecode(string s, TextWriter output) {
_httpServerUtility.UrlDecode(s, output);
}
public override string UrlEncode(string s) {
return _httpServerUtility.UrlEncode(s);
}
public override void UrlEncode(string s, TextWriter output) {
_httpServerUtility.UrlEncode(s, output);
}
public override string UrlPathEncode(string s) {
return _httpServerUtility.UrlPathEncode(s);
}
public override byte[] UrlTokenDecode(string input) {
return HttpServerUtility.UrlTokenDecode(input);
}
public override string UrlTokenEncode(byte[] input) {
return HttpServerUtility.UrlTokenEncode(input);
}
}
}
|