2003-10-10 Pedro Mart�nez Juli� <yoros@wanadoo.es>
[mono.git] / mcs / class / System / System.Net / WebResponse.cs
1 //\r
2 // System.Net.WebResponse\r
3 //\r
4 // Author:\r
5 //   Lawrence Pit (loz@cable.a2000.nl)\r
6 //\r
7 \r
8 using System;\r
9 using System.IO;\r
10 using System.Runtime.Serialization;\r
11 \r
12 namespace System.Net \r
13 {\r
14         [Serializable]\r
15         public abstract class WebResponse : MarshalByRefObject, ISerializable, IDisposable\r
16         {\r
17                 // Constructors\r
18                 \r
19                 protected WebResponse () { }\r
20                 \r
21                 protected WebResponse (SerializationInfo serializationInfo, StreamingContext streamingContext)\r
22                 {\r
23                         throw new NotSupportedException ();\r
24                 }\r
25                 \r
26                 // Properties\r
27                 \r
28                 public virtual long ContentLength {             \r
29                         get { throw new NotSupportedException (); }\r
30                         set { throw new NotSupportedException (); }\r
31                 }\r
32                 \r
33                 public virtual string ContentType {             \r
34                         get { throw new NotSupportedException (); }\r
35                         set { throw new NotSupportedException (); }\r
36                 }\r
37                 \r
38                 public virtual WebHeaderCollection Headers {            \r
39                         get { throw new NotSupportedException (); }\r
40                 }\r
41                 \r
42                 public virtual Uri ResponseUri {                \r
43                         get { throw new NotSupportedException (); }\r
44                 }               \r
45 \r
46                 // Methods\r
47                 \r
48                 public virtual void Close()\r
49                 {\r
50                         throw new NotSupportedException ();\r
51                 }\r
52                 \r
53                 public virtual Stream GetResponseStream()\r
54                 {\r
55                         throw new NotSupportedException ();\r
56                 }\r
57                 \r
58                 void IDisposable.Dispose()\r
59                 {\r
60                         Close ();\r
61                 }\r
62                 \r
63                 void ISerializable.GetObjectData (SerializationInfo serializationInfo,\r
64                                                   StreamingContext streamingContext)\r
65                 {\r
66                         throw new NotSupportedException ();\r
67                 }               \r
68         }\r
69 }\r