* roottypes.cs: Rename from tree.cs.
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / ServerProtocol.cs
1 // \r
2 // System.Web.Services.Protocols.ServerProtocol.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
10 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 // 
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 // 
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 //
30 \r
31 using System.IO;\r
32 using System.Web;\r
33 using System.Web.Services;\r
34 \r
35 namespace System.Web.Services.Protocols {\r
36         [MonoTODO ("Figure out what this class does.")]\r
37         internal abstract class ServerProtocol {\r
38 \r
39                 HttpContext _context;\r
40 \r
41                 #region Constructors\r
42 \r
43                 internal ServerProtocol (HttpContext context)\r
44                 {\r
45                         _context = context;\r
46                 }\r
47 \r
48                 protected ServerProtocol ()\r
49                 {\r
50                         throw new NotImplementedException ();\r
51                 }\r
52 \r
53                 #endregion\r
54 \r
55                 #region Properties\r
56 \r
57                 public HttpContext Context {\r
58                         get { return _context; }\r
59                 }\r
60 \r
61                 public abstract bool IsOneWay {\r
62                         get;\r
63                 }\r
64 \r
65                 public abstract LogicalMethodInfo MethodInfo {\r
66                         get;\r
67                 }\r
68 \r
69                 [MonoTODO]\r
70                 public virtual Exception OnewayInitException {\r
71                         get { throw new NotImplementedException (); }\r
72                 }\r
73 \r
74                 public HttpRequest Request {\r
75                         get { return _context.Request; }\r
76                 }\r
77 \r
78                 public HttpResponse Response {\r
79                         get { return _context.Response; }\r
80                 }\r
81 \r
82                 #endregion\r
83 \r
84                 #region Methods\r
85 \r
86                 [MonoTODO]\r
87                 protected void AddToCache (Type t1, Type t2, object o)\r
88                 {\r
89                         throw new NotImplementedException ();\r
90                 }\r
91 \r
92                 [MonoTODO]\r
93                 public virtual void CreateServerInstance ()\r
94                 {\r
95                         throw new NotImplementedException ();\r
96                 }\r
97 \r
98                 [MonoTODO]\r
99                 public virtual void DisposeServerInstance ()\r
100                 {\r
101                         throw new NotImplementedException ();\r
102                 }\r
103 \r
104                 [MonoTODO]\r
105                 public string GenerateFaultString (Exception exception)\r
106                 {\r
107                         throw new NotImplementedException ();\r
108                 }\r
109 \r
110                 [MonoTODO]\r
111                 protected object GetFromCache (Type t1, Type t2)\r
112                 {\r
113                         throw new NotImplementedException ();\r
114                 }\r
115 \r
116                 public abstract bool Initialize ();\r
117 \r
118                 public abstract object[] ReadParameters ();\r
119 \r
120                 [MonoTODO]\r
121                 public virtual bool WriteException (Exception e, Stream outputStream)\r
122                 {\r
123                         throw new NotImplementedException ();\r
124                 }\r
125 \r
126                 [MonoTODO]\r
127                 public void WriteOneWayResponse ()\r
128                 {\r
129                         throw new NotImplementedException ();\r
130                 }\r
131 \r
132                 public abstract void WriteReturns (object[] returnValues, Stream outputStream);\r
133 \r
134                 #endregion\r
135         }\r
136 }