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=5c778125aff5b7ab5f635b91ff2466a7ba7f94d3;hpb=60f5e9158d36e73be0b5a3e4f5fc920e13bde724;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 5c778125aff..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,110 +1,75 @@ -// -// System.Web.Services.Protocols.ServerProtocol.cs -// -// Author: -// Tim Coleman (tim@timcoleman.com) -// -// Copyright (C) Tim Coleman, 2002 -// - -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 { - - #region Constructors - - protected ServerProtocol () - { - throw new NotImplementedException (); - } - - #endregion - - #region Properties - - [MonoTODO] - public HttpContext Context { - get { throw new NotImplementedException (); } - } - - public abstract bool IsOneWay { - get; - } - - public abstract LogicalMethodInfo MethodInfo { - get; - } - - [MonoTODO] - public virtual Exception OnewayInitException { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public HttpRequest Request { - get { throw new NotImplementedException (); } - } - - [MonoTODO] - public HttpResponse Response { - get { throw new NotImplementedException (); } - } - - #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 - } -} +// +// ServerProtocol.cs +// +// Author: +// Atsushi Enomoto +// +// Copyright (C) 2006 Novell, Inc. +// + +// +// Permission is hereby granted, free of charge, to any person obtaining +// a copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to +// permit persons to whom the Software is furnished to do so, subject to +// the following conditions: +// +// The above copyright notice and this permission notice shall be +// included in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// + +#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