System.Web: New Implementations.
authorBob Smith <bobsmith@mono-cvs.ximian.com>
Thu, 9 Aug 2001 17:08:56 +0000 (17:08 -0000)
committerBob Smith <bobsmith@mono-cvs.ximian.com>
Thu, 9 Aug 2001 17:08:56 +0000 (17:08 -0000)
svn path=/trunk/mcs/; revision=450

22 files changed:
mcs/class/System.Web/ChangeLog
mcs/class/System.Web/System.Web/BeginEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/ChangeLog [new file with mode: 0644]
mcs/class/System.Web/System.Web/EndEventHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpCacheRevalidation.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpCacheValidateHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpCacheability.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpCookie.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpCookieCollection.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpValidationStatus.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/HttpWorkerRequest.EndOfSendNotification.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/IHttpAsyncHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/IHttpHandler.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/IHttpHandlerFactory.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/IHttpModule.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/ProcessShutdownReason.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/ProcessStatus.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/TODO [new file with mode: 0644]
mcs/class/System.Web/System.Web/TraceMode.cs [new file with mode: 0644]
mcs/class/System.Web/System.Web/common.src [new file with mode: 0644]
mcs/class/System.Web/System.Web/unix.src [new file with mode: 0644]
mcs/class/System.Web/System.Web/windows.src [new file with mode: 0644]

index 74aaf16f54861e602e7bed6823d5e4cb9da182b7..c22fdfe57edc6cb2f92e530f4fb4f067437b6f6c 100644 (file)
@@ -1,3 +1,7 @@
+2001-08-09  Bob Smith <bob@thestuff.net>
+
+        * Added directory: System.Web
+
 2001-07-20     Patrik Torstensson (Patrik.Torstensson@labs2.com)\r
 \r
        * Added directory: System.Web.Caching
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/BeginEventHandler.cs b/mcs/class/System.Web/System.Web/BeginEventHandler.cs
new file mode 100644 (file)
index 0000000..c2bd1ac
--- /dev/null
@@ -0,0 +1,16 @@
+//
+// System.Web.BeginEventHandler.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public delegate IAsyncResult BeginEventHandler(object sender,
+                                                       EventArgs e,
+                                                       AsyncCallback cb,
+                                                       object extraData);
+}
diff --git a/mcs/class/System.Web/System.Web/ChangeLog b/mcs/class/System.Web/System.Web/ChangeLog
new file mode 100644 (file)
index 0000000..f35c628
--- /dev/null
@@ -0,0 +1,18 @@
+2001-08-09  Bob Smith  <bob@thestuff.net>
+
+         * BeginEventHandler.cs: Implemented.
+         * EndEventHandler.cs: Implemented.
+         * HttpCacheability.cs: Implemented.
+         * HttpCacheRevalidation.cs: Implemented.
+         * HttpCacheValidateHandler.cs: Implemented.
+         * HttpCookieCollection.cs: Implemented.
+         * HttpCookie.cs: Implemented.
+         * HttpValidationStatus.cs: Implemented.
+         * HttpWorkerRequest.EndOfSendNotification.cs: Implemented.
+         * IHttpAsyncHandler.cs: Implemented.
+         * IHttpHandler.cs: Implemented.
+         * IHttpHandlerFactory.cs: Implemented.
+         * IHttpModule.cs: Implemented.
+         * ProcessShutdownReason.cs: Implemented.
+         * ProcessStatus.cs: Implemented.
+         * TraceMode.cs: Implemented.
diff --git a/mcs/class/System.Web/System.Web/EndEventHandler.cs b/mcs/class/System.Web/System.Web/EndEventHandler.cs
new file mode 100644 (file)
index 0000000..cd7a51c
--- /dev/null
@@ -0,0 +1,13 @@
+//
+// System.Web.EndEventHandler.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public delegate void EndEventHandler(IAsyncResult ar);
+}
diff --git a/mcs/class/System.Web/System.Web/HttpCacheRevalidation.cs b/mcs/class/System.Web/System.Web/HttpCacheRevalidation.cs
new file mode 100644 (file)
index 0000000..c0a4038
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.Web.HttpCacheRevalidation.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum HttpCacheRevalidation
+        {
+                AllCaches,
+                None,
+                ProxyCaches
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/HttpCacheValidateHandler.cs b/mcs/class/System.Web/System.Web/HttpCacheValidateHandler.cs
new file mode 100644 (file)
index 0000000..032aea3
--- /dev/null
@@ -0,0 +1,16 @@
+//
+// System.Web.HttpCacheValidateHandler.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public delegate void HttpCacheValidateHandler(
+                                HttpContext context,
+                                object data,
+                                ref HttpValidationStatus validationStatus);
+}
diff --git a/mcs/class/System.Web/System.Web/HttpCacheability.cs b/mcs/class/System.Web/System.Web/HttpCacheability.cs
new file mode 100644 (file)
index 0000000..4a89bf8
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.Web.HttpCacheability.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum HttpCacheability
+        {
+               NoCache,
+                Private,
+                Public,
+                Server
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/HttpCookie.cs b/mcs/class/System.Web/System.Web/HttpCookie.cs
new file mode 100644 (file)
index 0000000..0fda098
--- /dev/null
@@ -0,0 +1,103 @@
+//
+// System.Web.HttpCookie.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public sealed class HttpCookie
+        {
+                private string _name;
+                private string _value = null;
+                private string _domain; //TODO: default to some pref.
+                private DateTime _expires;
+                private string _path;  //TODO: default is the current request path.
+                private bool _secure = false;
+                public HttpCookie(string name)
+                {
+                        _name = name;
+                }
+                public HttpCookie(string name, string value)
+                {
+                        _name = name;
+                        _value = value;
+                }
+                public string Domain
+                {
+                        get
+                        {
+                                return _domain;
+                        }
+                        set
+                        {
+                                _domain = value;
+                        }
+                }
+                public DateTime Expires
+                {
+                        get
+                        {
+                                return _expires;
+                        }
+                        set
+                        {
+                                _expires = value;
+                        }
+                }
+                public bool HasKeys
+                        get
+                        {
+                                return FALSE; //TODO
+                        }
+               public string this[string key] {get; set;} //TODO: get subcookie.
+               public string Name
+                {
+                        get
+                        {
+                                return _name;
+                        }
+                        set
+                        {
+                                _name = value;
+                        }
+                }
+                public string Path
+                {
+                        get
+                        {
+                                return _path;
+                        }
+                        set
+                        {
+                                _path = value;
+                        }
+                }
+                public bool Secure
+                {
+                        get
+                        {
+                                return _secure;
+                        }
+                        set
+                        {
+                                _secure = value;
+                        }
+                }
+                public string Value
+                {
+                        get
+                        {
+                                return _value;
+                        }
+                        set
+                        {
+                                _value = value;
+                        }
+                }
+                public NameValueCollection Values {get;} //TODO
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/HttpCookieCollection.cs b/mcs/class/System.Web/System.Web/HttpCookieCollection.cs
new file mode 100644 (file)
index 0000000..f0c23c1
--- /dev/null
@@ -0,0 +1,63 @@
+//
+// System.Web.HttpCookieCollection.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public sealed class HttpCookieCollection : NameObjectCollectionBase
+        {
+                public HttpCookieCollection();
+                public string[] AllKeys
+                {
+                        get
+                        {
+                                return this.BaseGetAllKeys();
+                        }
+                public HttpCookie this[int index]
+                {
+                        get
+                        {
+                                return this.BaseGet(index);
+                        }
+                }
+                public HttpCookie this[string name]
+                {
+                        get
+                        {
+                                return this.BaseGet(name);
+                        }
+                }
+                public void Add(HttpCookie cookie)
+                {
+                        this.BaseAdd(cookie.name, cookie);
+                }
+                public void Clear;
+                {
+                        this.BaseClear;
+                }
+                public void CopyTo(Array dest, int index)
+                {
+                        for(i=0; i<this.Count; i++)
+                        {
+                                dest[index+i]=this[i];
+                        }
+                }
+                public string GetKey(int index)
+                {
+                        return this.BaseGetKey(index);
+                }
+                public void Remove(string name)
+                {
+                        this.BaseRemove(name);
+                }
+                public void Set(HttpCookie cookie)
+                {
+                        this.BaseSet(cookie.name, cookie);
+                }
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/HttpValidationStatus.cs b/mcs/class/System.Web/System.Web/HttpValidationStatus.cs
new file mode 100644 (file)
index 0000000..6338b59
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.Web.HttpValidationStatus.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum HttpValidationStatus
+        {
+                IgnoreThisRequest,
+                Invalid,
+                Valid
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/HttpWorkerRequest.EndOfSendNotification.cs b/mcs/class/System.Web/System.Web/HttpWorkerRequest.EndOfSendNotification.cs
new file mode 100644 (file)
index 0000000..d3ab5aa
--- /dev/null
@@ -0,0 +1,15 @@
+//
+// System.Web.HttpWorkerRequest.EndOfSendNotification.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public delegate void HttpWorkerRequest.EndOfSendNotification(
+                                HttpWorkerRequest wr,
+                                object extraData);
+}
diff --git a/mcs/class/System.Web/System.Web/IHttpAsyncHandler.cs b/mcs/class/System.Web/System.Web/IHttpAsyncHandler.cs
new file mode 100644 (file)
index 0000000..42b1329
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.Web.IHttpAsyncHandler.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public interface IHttpAsyncHandler : IHttpHandler
+        {
+                IAsyncResult BeginProcessRequest(HttpContext context,
+                                                 AsyncCallback cb,
+                                                 object extraData);
+                void EndProcessRequest(IAsyncResult result);
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/IHttpHandler.cs b/mcs/class/System.Web/System.Web/IHttpHandler.cs
new file mode 100644 (file)
index 0000000..9cc39cf
--- /dev/null
@@ -0,0 +1,17 @@
+//
+// System.IHttpHandler.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public interface IHttpHandler
+        {
+                bool IsReusable {get;}
+                void ProcessRequest(HttpContext context);
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/IHttpHandlerFactory.cs b/mcs/class/System.Web/System.Web/IHttpHandlerFactory.cs
new file mode 100644 (file)
index 0000000..836953d
--- /dev/null
@@ -0,0 +1,20 @@
+//
+// System.Web.IHttpHandlerFactory.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public interface IHttpHandlerFactory
+        {
+                IHttpHandler GetHandler(HttpContext context,
+                                        string requestType,
+                                        string url,
+                                        string pathTranslated);
+                void ReleaseHandler(IHttpHandler handler);
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/IHttpModule.cs b/mcs/class/System.Web/System.Web/IHttpModule.cs
new file mode 100644 (file)
index 0000000..a000b15
--- /dev/null
@@ -0,0 +1,17 @@
+//
+// System.Web.IHttpModule.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public interface IHttpModule
+        {
+                void Dispose();
+                void Init(HttpApplication context);
+        }
+}
diff --git a/mcs/class/System.Web/System.Web/ProcessShutdownReason.cs b/mcs/class/System.Web/System.Web/ProcessShutdownReason.cs
new file mode 100644 (file)
index 0000000..1b8586e
--- /dev/null
@@ -0,0 +1,23 @@
+//
+// System.Web.ProcessShutdownReason.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum ProcessShutdownReason
+        {
+                IdleTimeout,
+                MemoryLimitExceeded,
+                None,
+                PingFailed,
+                RequestQueueLimit,
+                RequestsLimit,
+                Timeout,
+                Unexpected
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/ProcessStatus.cs b/mcs/class/System.Web/System.Web/ProcessStatus.cs
new file mode 100644 (file)
index 0000000..7906688
--- /dev/null
@@ -0,0 +1,19 @@
+//
+// System.Web.ProcessStatus.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum ProcessStatus
+        {
+                Alive,
+                ShutDown,
+                ShuttingDown,
+                Terminated
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/TODO b/mcs/class/System.Web/System.Web/TODO
new file mode 100644 (file)
index 0000000..fdc2734
--- /dev/null
@@ -0,0 +1,27 @@
+HttpClientCertificate
+HttpApplicationState
+HttpFileCollection
+HttpModuleCollection
+HttpException
+HttpCompileException
+HttpParseException
+HttpUnhandledException
+HttpWriter
+HttpCapabilitiesBase
+HttpBrowserCapabilities
+HttpApplication
+HttpCachePolicy
+HttpCacheVaryByHeaders
+HttpCacheVaryByParams
+HttpContext
+HttpPostedFile
+HttpRequest
+HttpResponse
+HttpRuntime
+HttpServerUtility
+HttpStaticObjectsCollection
+HttpUtility
+HttpWorkerRequest
+ProcessInfo
+ProcessModelInfo
+TraceContext
diff --git a/mcs/class/System.Web/System.Web/TraceMode.cs b/mcs/class/System.Web/System.Web/TraceMode.cs
new file mode 100644 (file)
index 0000000..268f060
--- /dev/null
@@ -0,0 +1,17 @@
+//
+// System.Web.TraceMode.cs
+//
+// Author:
+//   Bob Smith <bob@thestuff.net>
+//
+// (C) Bob Smith
+//
+
+namespace System.Web
+{
+        public enum 
+        {
+                SortByCategory,
+                SortByTime
+        }
+}
\ No newline at end of file
diff --git a/mcs/class/System.Web/System.Web/common.src b/mcs/class/System.Web/System.Web/common.src
new file mode 100644 (file)
index 0000000..100c54e
--- /dev/null
@@ -0,0 +1,16 @@
+BeginEventHandler.cs
+EndEventHandler.cs
+HttpCacheability.cs
+HttpCacheRevalidation.cs
+HttpCacheValidateHandler.cs
+HttpCookieCollection.cs
+HttpCookie.cs
+HttpValidationStatus.cs
+HttpWorkerRequest.EndOfSendNotification.cs
+IHttpAsyncHandler.cs
+IHttpHandler.cs
+IHttpHandlerFactory.cs
+IHttpModule.cs
+ProcessShutdownReason.cs
+ProcessStatus.cs
+TraceMode.cs
diff --git a/mcs/class/System.Web/System.Web/unix.src b/mcs/class/System.Web/System.Web/unix.src
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/mcs/class/System.Web/System.Web/windows.src b/mcs/class/System.Web/System.Web/windows.src
new file mode 100644 (file)
index 0000000..e69de29