(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Web.Services / System.Web.Services.Protocols / ServerProtocol.cs
blob8bc4e1e3f64a7f8b1250172697aed17662e33f82
1 //
2 // System.Web.Services.Protocols.ServerProtocol.cs
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
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.
31 using System.IO;
32 using System.Web;
33 using System.Web.Services;
35 namespace System.Web.Services.Protocols {
36 [MonoTODO ("Figure out what this class does.")]
37 internal abstract class ServerProtocol {
39 HttpContext _context;
41 #region Constructors
43 internal ServerProtocol (HttpContext context)
45 _context = context;
48 protected ServerProtocol ()
50 throw new NotImplementedException ();
53 #endregion
55 #region Properties
57 public HttpContext Context {
58 get { return _context; }
61 public abstract bool IsOneWay {
62 get;
65 public abstract LogicalMethodInfo MethodInfo {
66 get;
69 [MonoTODO]
70 public virtual Exception OnewayInitException {
71 get { throw new NotImplementedException (); }
74 public HttpRequest Request {
75 get { return _context.Request; }
78 public HttpResponse Response {
79 get { return _context.Response; }
82 #endregion
84 #region Methods
86 [MonoTODO]
87 protected void AddToCache (Type t1, Type t2, object o)
89 throw new NotImplementedException ();
92 [MonoTODO]
93 public virtual void CreateServerInstance ()
95 throw new NotImplementedException ();
98 [MonoTODO]
99 public virtual void DisposeServerInstance ()
101 throw new NotImplementedException ();
104 [MonoTODO]
105 public string GenerateFaultString (Exception exception)
107 throw new NotImplementedException ();
110 [MonoTODO]
111 protected object GetFromCache (Type t1, Type t2)
113 throw new NotImplementedException ();
116 public abstract bool Initialize ();
118 public abstract object[] ReadParameters ();
120 [MonoTODO]
121 public virtual bool WriteException (Exception e, Stream outputStream)
123 throw new NotImplementedException ();
126 [MonoTODO]
127 public void WriteOneWayResponse ()
129 throw new NotImplementedException ();
132 public abstract void WriteReturns (object[] returnValues, Stream outputStream);
134 #endregion