// Author:\r
// Lawrence Pit (loz@cable.a2000.nl)\r
//\r
-
-//
-// 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.
-//
+\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
\r
using System;\r
using System.IO;\r
\r
namespace System.Net \r
{\r
+#if MOONLIGHT\r
+ internal abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable {\r
+#else\r
[Serializable]\r
- public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable\r
- {\r
+ public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable {\r
+#endif\r
// Constructors\r
\r
protected WebResponse () { }\r
public virtual WebHeaderCollection Headers { \r
get { throw new NotSupportedException (); }\r
}\r
+\r
+ static Exception GetMustImplement ()\r
+ {\r
+ return new NotImplementedException ();\r
+ }\r
+ \r
+ [MonoTODO]\r
+ public virtual bool IsFromCache\r
+ {\r
+ get {\r
+ throw GetMustImplement ();\r
+ }\r
+ }\r
+ \r
+ [MonoTODO]\r
+ public virtual bool IsMutuallyAuthenticated\r
+ {\r
+ get {\r
+ throw GetMustImplement ();\r
+ }\r
+ }\r
\r
public virtual Uri ResponseUri { \r
get { throw new NotSupportedException (); }\r
{\r
throw new NotSupportedException ();\r
}\r
- \r
+#if TARGET_JVM //enable overrides for extenders\r
+ public virtual void Dispose()\r
+#else\r
void IDisposable.Dispose()\r
+#endif\r
{\r
Close ();\r
}\r
- \r
- void ISerializable.GetObjectData (SerializationInfo serializationInfo,\r
+\r
+ void ISerializable.GetObjectData\r
+ (SerializationInfo serializationInfo,\r
StreamingContext streamingContext)\r
{\r
throw new NotSupportedException ();\r
- } \r
+ }\r
+\r
+ [MonoTODO]\r
+ protected virtual void GetObjectData (SerializationInfo serializationInfo, StreamingContext streamingContext)\r
+ {\r
+ throw GetMustImplement ();\r
+ }\r
}\r
}\r