summaryrefslogtreecommitdiffhomepage
path: root/NetEx/HttpServlet.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-03-29 23:28:05 +0200
committerAki <please@ignore.pl>2022-03-29 23:29:18 +0200
commit27ffda3b67d172afca2cb85387fad27e78719480 (patch)
tree6ca5f6992b54ff34d42125b03522c7227cbaa108 /NetEx/HttpServlet.h
parent20eb9409e1d4d5d26222e62df4a81b0be9cae6f2 (diff)
downloadstarshatter-27ffda3b67d172afca2cb85387fad27e78719480.zip
starshatter-27ffda3b67d172afca2cb85387fad27e78719480.tar.gz
starshatter-27ffda3b67d172afca2cb85387fad27e78719480.tar.bz2
Split Session from HttpServlet
Diffstat (limited to 'NetEx/HttpServlet.h')
-rw-r--r--NetEx/HttpServlet.h54
1 files changed, 7 insertions, 47 deletions
diff --git a/NetEx/HttpServlet.h b/NetEx/HttpServlet.h
index aedfb09..eb706ea 100644
--- a/NetEx/HttpServlet.h
+++ b/NetEx/HttpServlet.h
@@ -3,26 +3,21 @@
Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors
Copyright (c) 1997-2006, Destroyer Studios LLC.
- AUTHOR: John DiCamillo
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Network Server Pump for HTTP Server
+ OVERVIEW
+ ========
+ Network Server Pump for HTTP Server
*/
-
#ifndef HttpServlet_h
#define HttpServlet_h
-#include "HttpServer.h"
-
-// +-------------------------------------------------------------------+
-
-class HttpServlet;
-class HttpSession;
+#include "HttpRequest.h"
+#include "HttpResponse.h"
+#include "HttpSession.h"
-// +-------------------------------------------------------------------+
class HttpServlet
{
@@ -45,40 +40,5 @@ protected:
HttpSession* session;
};
-// +-------------------------------------------------------------------+
-
-class HttpSession
-{
-public:
- static const char* TYPENAME() { return "HttpSession"; }
-
- HttpSession();
- virtual ~HttpSession();
-
- int operator == (const HttpSession& s) const { return id == s.id; }
-
- Text GenerateUniqueID();
-
- Text GetID() const { return id; }
- void SetID(const char* i) { id = i; }
- int GetLastAccess() const { return access_time;}
- void Access();
-
- List<HttpParam>& GetAttributes() { return attributes; }
-
- Text GetAttribute(const char* name);
- void SetAttribute(const char* name, const char* value);
- void DelAttribute(const char* name);
-
- int GetIntAttribute(const char* name);
- void SetIntAttribute(const char* name, int value);
- void DelIntAttribute(const char* name);
-
-protected:
- Text id;
- int access_time;
- List<HttpParam> attributes;
-};
-
#endif // HttpServlet_h