X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Web.Services%2FSystem.Web.Services.Protocols%2FServerProtocol.cs;h=70c895ab52a54a6cec476614f59166600d1d1493;hb=186f4869c425a8d08bb52b2ce4e8cacead29c62e;hp=8bc4e1e3f64a7f8b1250172697aed17662e33f82;hpb=0443306d611d0830e27327e1f0a3ef3457dfa535;p=mono.git diff --git a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs index 8bc4e1e3f64..70c895ab52a 100644 --- a/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs +++ b/mcs/class/System.Web.Services/System.Web.Services.Protocols/ServerProtocol.cs @@ -1,11 +1,11 @@ -// -// System.Web.Services.Protocols.ServerProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// +// +// ServerProtocol.cs +// +// Author: +// Atsushi Enomoto +// +// Copyright (C) 2006 Novell, Inc. +// // // Permission is hereby granted, free of charge, to any person obtaining @@ -27,110 +27,49 @@ // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // - -using System.IO; -using System.Web; -using System.Web.Services; - -namespace System.Web.Services.Protocols { - [MonoTODO ("Figure out what this class does.")] - internal abstract class ServerProtocol { - - HttpContext _context; - - #region Constructors - - internal ServerProtocol (HttpContext context) - { - _context = context; - } - - protected ServerProtocol () - { - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - public HttpContext Context { - get { return _context; } - } - - public abstract bool IsOneWay { - get; - } - - public abstract LogicalMethodInfo MethodInfo { - get; - } - - [MonoTODO] - public virtual Exception OnewayInitException { - get { throw new NotImplementedException (); } - } - - public HttpRequest Request { - get { return _context.Request; } - } - - public HttpResponse Response { - get { return _context.Response; } - } - - #endregion - - #region Methods - - [MonoTODO] - protected void AddToCache (Type t1, Type t2, object o) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void CreateServerInstance () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public virtual void DisposeServerInstance () - { - throw new NotImplementedException (); - } - - [MonoTODO] - public string GenerateFaultString (Exception exception) - { - throw new NotImplementedException (); - } - - [MonoTODO] - protected object GetFromCache (Type t1, Type t2) - { - throw new NotImplementedException (); - } - - public abstract bool Initialize (); - - public abstract object[] ReadParameters (); - - [MonoTODO] - public virtual bool WriteException (Exception e, Stream outputStream) - { - throw new NotImplementedException (); - } - - [MonoTODO] - public void WriteOneWayResponse () - { - throw new NotImplementedException (); - } - - public abstract void WriteReturns (object[] returnValues, Stream outputStream); - - #endregion - } + +#if NET_2_0 + +namespace System.Web.Services.Protocols +{ + public abstract class ServerProtocol + { + protected ServerProtocol () + { + } + + [MonoTODO] + protected HttpContext Context { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected HttpRequest Request { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected HttpResponse Response { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected virtual object Target { + get { throw new NotImplementedException (); } + } + + [MonoTODO] + protected void AddToCache (Type protocolType, Type serverType, object value) + { + throw new NotImplementedException (); + } + + [MonoTODO] + protected object GetFromCache (Type protocolType, Type serverType) + { + throw new NotImplementedException (); + } + } } + +#endif