| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- //
- // System.Net.WebRequest
- //
- // Author:
- // Lawrence Pit ([email protected])
- //
- using System;
- using System.IO;
- using System.Runtime.Serialization;
- namespace System.Net
- {
- [Serializable]
- public abstract class WebRequest : MarshalByRefObject, ISerializable
- {
- // Constructors
-
- protected WebRequest () {}
-
- protected WebRequest (SerializationInfo serializationInfo, StreamingContext streamingContext)
- {
- throw new NotSupportedException ();
- }
-
- // Properties
-
- public virtual string ConnectionGroupName {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual long ContentLength {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual string ContentType {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual ICredentials Credentials {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual WebHeaderCollection Headers {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual string Method {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual bool PreAuthenticate {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual IWebProxy Proxy {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual Uri RequestUri {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- public virtual int Timeout {
- get { throw new NotSupportedException (); }
- set { throw new NotSupportedException (); }
- }
-
- // Methods
-
- public virtual void Abort()
- {
- throw new NotSupportedException ();
- }
-
- public virtual IAsyncResult BeginGetRequestStream (AsyncCallback callback, object state)
- {
- throw new NotSupportedException ();
- }
-
- public virtual IAsyncResult BeginGetResponse (AsyncCallback callback, object state)
- {
- throw new NotSupportedException ();
- }
- public static WebRequest Create (string requestUriString)
- {
- if (requestUriString == null)
- throw new ArgumentNullException ("requestUriString");
- return Create (new Uri (requestUriString));
- }
-
- [MonoTODO]
- public static WebRequest Create (Uri requestUri)
- {
- if (requestUri == null)
- throw new ArgumentNullException ("requestUri");
- throw new NotImplementedException ();
- }
-
- [MonoTODO]
- public static WebRequest CreateDefault (Uri requestUri)
- {
- if (requestUri == null)
- throw new ArgumentNullException ("requestUri");
- throw new NotImplementedException ();
- }
- public virtual Stream EndGetRequestStream (IAsyncResult asyncResult)
- {
- throw new NotSupportedException ();
- }
-
- public virtual WebResponse EndGetResponse (IAsyncResult asyncResult)
- {
- throw new NotSupportedException ();
- }
-
- public virtual Stream GetRequestStream()
- {
- throw new NotSupportedException ();
- }
-
- public virtual WebResponse GetResponse()
- {
- throw new NotSupportedException ();
- }
-
- void ISerializable.GetObjectData (SerializationInfo serializationInfo,
- StreamingContext streamingContext)
- {
- throw new NotSupportedException ();
- }
- [MonoTODO]
- public static bool RegisterPrefix (string prefix, IWebRequestCreate creator)
- {
- throw new NotImplementedException ();
- }
- }
- }
|