e3aefb309292ea8730e15f02a4d2ea0df1e2dc01
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / WebClientProtocol.cs
1 // \r
2 // System.Web.Services.Protocols.WebClientProtocol.cs\r
3 //\r
4 // Author:\r
5 //   Tim Coleman (tim@timcoleman.com)\r
6 //\r
7 // Copyright (C) Tim Coleman, 2002\r
8 //\r
9 \r
10 using System.ComponentModel;\r
11 using System.Net;\r
12 using System.Text;\r
13 using System.Web.Services;\r
14 \r
15 namespace System.Web.Services.Protocols {\r
16         public abstract class WebClientProtocol : Component {\r
17 \r
18                 #region Fields\r
19 \r
20                 string connectionGroupName;\r
21                 ICredentials credentials;\r
22                 bool preAuthenticate;\r
23                 Encoding requestEncoding;\r
24                 int timeout;\r
25                 string url;\r
26 \r
27                 #endregion\r
28 \r
29                 #region Constructors\r
30 \r
31                 protected WebClientProtocol () \r
32                 {\r
33                         connectionGroupName = String.Empty;\r
34                         credentials = null;\r
35                         preAuthenticate = false;\r
36                         requestEncoding = null;\r
37                         timeout = 100000;\r
38                         url = String.Empty;\r
39                 }\r
40                 \r
41                 #endregion // Constructors\r
42 \r
43                 #region Properties\r
44 \r
45                 public string ConnectionGroupName {\r
46                         get { return connectionGroupName; }\r
47                         set { connectionGroupName = value; }\r
48                 }\r
49 \r
50                 public ICredentials Credentials {\r
51                         get { return credentials; }\r
52                         set { credentials = value; }\r
53                 }\r
54 \r
55                 public bool PreAuthenticate {\r
56                         get { return preAuthenticate; }\r
57                         set { preAuthenticate = value; }\r
58                 }\r
59 \r
60                 public Encoding RequestEncoding {\r
61                         get { return requestEncoding; }\r
62                         set { requestEncoding = value; }\r
63                 }\r
64 \r
65                 public int Timeout {\r
66                         get { return timeout; }\r
67                         set { timeout = value; }\r
68                 }\r
69 \r
70                 public string Url {\r
71                         get { return url; }\r
72                         set { url = value; }\r
73                 }\r
74 \r
75                 #endregion // Properties\r
76 \r
77                 #region Methods\r
78 \r
79                 [MonoTODO]\r
80                 public virtual void Abort ()\r
81                 {\r
82                         throw new NotImplementedException ();\r
83                 }\r
84 \r
85                 [MonoTODO]\r
86                 protected static void AddToCache (Type type, object value)\r
87                 {\r
88                         throw new NotImplementedException ();\r
89                 }\r
90 \r
91                 [MonoTODO]\r
92                 protected static object GetFromCache (Type type)\r
93                 {\r
94                         throw new NotImplementedException ();\r
95                 }\r
96 \r
97                 [MonoTODO]\r
98                 protected virtual WebRequest GetWebRequest (Uri uri)\r
99                 {\r
100                         throw new NotImplementedException ();\r
101                 }\r
102 \r
103                 [MonoTODO]\r
104                 protected virtual WebResponse GetWebResponse (WebRequest request)\r
105                 {\r
106                         throw new NotImplementedException ();\r
107                 }\r
108 \r
109                 [MonoTODO]\r
110                 protected virtual WebResponse GetWebResponse (WebRequest request, IAsyncResult result)\r
111                 {\r
112                         throw new NotImplementedException ();\r
113                 }\r
114 \r
115                 #endregion // Methods\r
116         }\r
117 }\r