2 // System.Web.Services.Protocols.ServerProtocol.cs
\r
5 // Tim Coleman (tim@timcoleman.com)
\r
7 // Copyright (C) Tim Coleman, 2002
\r
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:
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
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.
33 using System.Web.Services;
\r
35 namespace System.Web.Services.Protocols {
\r
36 [MonoTODO ("Figure out what this class does.")]
\r
37 internal abstract class ServerProtocol {
\r
39 HttpContext _context;
\r
41 #region Constructors
\r
43 internal ServerProtocol (HttpContext context)
\r
48 protected ServerProtocol ()
\r
50 throw new NotImplementedException ();
\r
57 public HttpContext Context {
\r
58 get { return _context; }
\r
61 public abstract bool IsOneWay {
\r
65 public abstract LogicalMethodInfo MethodInfo {
\r
70 public virtual Exception OnewayInitException {
\r
71 get { throw new NotImplementedException (); }
\r
74 public HttpRequest Request {
\r
75 get { return _context.Request; }
\r
78 public HttpResponse Response {
\r
79 get { return _context.Response; }
\r
87 protected void AddToCache (Type t1, Type t2, object o)
\r
89 throw new NotImplementedException ();
\r
93 public virtual void CreateServerInstance ()
\r
95 throw new NotImplementedException ();
\r
99 public virtual void DisposeServerInstance ()
\r
101 throw new NotImplementedException ();
\r
105 public string GenerateFaultString (Exception exception)
\r
107 throw new NotImplementedException ();
\r
111 protected object GetFromCache (Type t1, Type t2)
\r
113 throw new NotImplementedException ();
\r
116 public abstract bool Initialize ();
\r
118 public abstract object[] ReadParameters ();
\r
121 public virtual bool WriteException (Exception e, Stream outputStream)
\r
123 throw new NotImplementedException ();
\r
127 public void WriteOneWayResponse ()
\r
129 throw new NotImplementedException ();
\r
132 public abstract void WriteReturns (object[] returnValues, Stream outputStream);
\r