diff --git a/HTTPHandler.h b/HTTPHandler.h index c4668af..5499cbc 100644 --- a/HTTPHandler.h +++ b/HTTPHandler.h @@ -15,7 +15,7 @@ namespace http { int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override; private: - HTTPRequest *httpRequest; + HTTPRequest *httpRequest = NULL; bool processHTTPRequest(core::TCPSession *session, std::stringstream &data); }; diff --git a/HTTPPageList.h b/HTTPPageList.h index 6a00ddd..ae4a95d 100644 --- a/HTTPPageList.h +++ b/HTTPPageList.h @@ -34,8 +34,8 @@ namespace http { add(mainmenu, "/mainmenu"); add(configure, "/configure"); add(viewlist, "/viewlist"); - add(workflow, "/workflow"); - add(workflow_js, "/__workflow_js"); + add(workflow, "/workflow"); + add(workflow_js, "/__workflow_js"); } bool processRequest(HTTPRequest *httpRequest, core::TCPSession *session, HTTPSession *httpSession, std::stringstream &data); diff --git a/HTTPRequest.cpp b/HTTPRequest.cpp index c102035..bf687bb 100644 --- a/HTTPRequest.cpp +++ b/HTTPRequest.cpp @@ -3,10 +3,10 @@ #include "Log.h" namespace http { - -// HTTPRequest::HTTPRequest(coreutils::PString &in) { -// request = coreutils::IMFRequest(in); -// } - + + // HTTPRequest::HTTPRequest(coreutils::PString &in) { + // request = coreutils::IMFRequest(in); + // } + } diff --git a/HTTPRequest.h b/HTTPRequest.h index d4f4b1b..a9c99c2 100644 --- a/HTTPRequest.h +++ b/HTTPRequest.h @@ -10,11 +10,12 @@ namespace http { - class HTTPRequest : public coreutils::IMFMessage { + class HTTPRequest : public coreutils::IMFMessage, public coreutils::IMFRequest { public: - HTTPRequest(coreutils::PString &in) : IMFMessage(in) {} + HTTPRequest(coreutils::PString &in) : IMFRequest(in), IMFMessage(in) {} + coreutils::IMFRequest request; coreutils::IMFResponse response; }; diff --git a/HTTPServer b/HTTPServer index 76a5d3a..37b520c 100755 Binary files a/HTTPServer and b/HTTPServer differ diff --git a/docs/html/____configure_8h_source.html b/docs/html/____configure_8h_source.html deleted file mode 100644 index db55f35..0000000 --- a/docs/html/____configure_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__configure.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__configure.h
-
-
-
1 #ifndef ____configure_h__
2 #define ____configure_h__
3 
4 namespace http {
5 
6  class __configure : public HTTPPage {
7 
8  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
9 
10  data << "<form name=\"configure\" action=\"setupadmin\" method=\"POST\">" << std::endl;
11  data << " <div class=\"window\"><h1>System Configuration</h1>" << std::endl;
12  data << "" << std::endl;
13  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
14  data << " <div>Web Domain Name:</div>" << std::endl;
15  data << " <input type=\"text\" name=\"domainname\" size=\"30\">" << std::endl;
16  data << " </div>" << std::endl;
17  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
18  data << " <div>View Directory:</div>" << std::endl;
19  data << " <input type=\"text\" name=\"viewdirectory\" size=\"30\">" << std::endl;
20  data << " </div>" << std::endl;
21  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
22  data << " <div>Image Library Directory:</div>" << std::endl;
23  data << " <input type=\"password\" name=\"imagelibrary\" size=\"30\">" << std::endl;
24  data << " </div>" << std::endl;
25  data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
26  data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
27  data << " <input type=\"button\" onmousedown=\"process('/mainmenu','configure', 'main'); return true;\" name=\"button1\" value=\"Update Configuration\">" << std::endl;
28  data << " </div></form>" << std::endl;
29 
30  httpRequest.response.addHeader("Content-Type", "text/html");
31 
32  return true;
33  }
34  };
35 }
36 
37 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
Definition: __configure.h:6
-
- - - - diff --git a/docs/html/____editview_8h_source.html b/docs/html/____editview_8h_source.html deleted file mode 100644 index 64ce66f..0000000 --- a/docs/html/____editview_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__editview.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__editview.h
-
-
-
1 #ifndef ____editview_h__
2 #define ____editview_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __editview : public HTTPPage {
9 
10  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
11 
12  data << " <div style=\"position: relative;\">" << std::endl;
13  data << "" << std::endl;
14  data << " <div id=\"window1\" style=\"position: absolute; left: 0px; top: 0px; border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;\">" << std::endl;
15  data << "" << std::endl;
16  data << " <span style=\"font: 20px bebasneue;\">View Editor</span>" << std::endl;
17  data << "" << std::endl;
18  data << " <div id=\"mainpage\" " << std::endl;
19  data << " style=\"width: 600px; height: 600px; border: 1px solid black; position: relative; background: #ffffff;\" " << std::endl;
20  data << " onmousemove=\"mousemove(event); return true;\" " << std::endl;
21  data << " onmouseup=\"mouseup(); return true;\">" << std::endl;
22  data << "" << std::endl;
23  data << " <canvas id=\"grid\" width=\"600px\" height=\"600px\" style=\"position: absolute; left: 0px; top: 0px; alpha: 0.5; cursor: normal;\"></canvas>" << std::endl;
24  data << "" << std::endl;
25 
26  data << "<div id=\"__workspace__\"></div>" << std::endl;
27 
28  data << "" << std::endl;
29  data << " <div id=\"window3\" style=\"position:absolute; top: 235px; left: 610px;" << std::endl;
30  data << " border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;\">" << std::endl;
31  data << "" << std::endl;
32  data << " <span style=\"font: 20px bebasneue;\">OPTIONS</span>" << std::endl;
33  data << "" << std::endl;
34  data << " <div style=\"width: 150px; height: 300px; color: #000000; border: 1px solid black; position: relative; background: #ffffff;\" " << std::endl;
35  data << " onmousemove=\"mousemove(event); return true;\" " << std::endl;
36  data << " onmouseup=\"mouseup(); return true;\"> " << std::endl;
37  data << "" << std::endl;
38  data << " <div id=\"controls\">" << std::endl;
39  data << " <input type=\"checkbox\" name=\"grid\" onchange=\"showGrid = this.checked; drawGrid(); return true;\"><span style=\"font: 12px bebasneue; margin-bottom: 2px;\">Show Grid</span><br>" << std::endl;
40  data << " <input type=\"checkbox\" name=\"snaptogrid\" onchange=\"snapToGrid = this.checked; return true;\"><span style=\"font: 12px bebasneue; margin-bottom: 2px;\">Snap To Grid</span><br>" << std::endl;
41  data << " <span style=\"font: 12px bebasneue; margin-bottom: 2px;\">Grid Size: </span><input type=\"text\" name=\"gridsize\" id=\"gridsize\" style=\"width: 20px;\" size=\"3\" onchange=\"gridSize = parseInt(this.value); drawGrid(); return true;\"><br>" << std::endl;
42  data << " </div>" << std::endl;
43  data << "" << std::endl;
44  data << " <div id=\"itemparameters\" style=\"font: 12px bebasneue;\"></div>" << std::endl;
45  data << "" << std::endl;
46  data << " <div id=\"data\" style=\"font: 12px bebasneue;\">" << std::endl;
47  data << " <p>NO DATA</p>" << std::endl;
48  data << " </div>" << std::endl;
49  data << "" << std::endl;
50  data << " </div>" << std::endl;
51  data << " </div>" << std::endl;
52  data << "" << std::endl;
53  data << "" << std::endl;
54  data << " <div id=\"window2\" style=\"position:absolute; top: 0px; left: 610px; border: 1pt solid black; display: inline-block; padding: 2px; background: #808080; color: #ffffff;\">" << std::endl;
55  data << "" << std::endl;
56  data << " <span style=\"font: 20px bebasneue;\">Toolbar</span>" << std::endl;
57  data << "" << std::endl;
58  data << " <div id=\"toolbar\" " << std::endl;
59  data << " style=\"width: 80px; height: 200px; border: 1px solid black; position: relative; background: #ffffff;\" " << std::endl;
60  data << " onmousemove=\"mousemove(event); return true;\" " << std::endl;
61  data << " onmouseup=\"mouseup(); return true;\">" << std::endl;
62  data << " <button id=\"button1\" " << std::endl;
63  data << " style=\"width: 40px; height: 40px; border: 2px solid green; position: absolute;\"" << std::endl;
64  data << " onmousedown=\"mousedown(this, event); return true;\">Press</button>" << std::endl;
65  data << "" << std::endl;
66  data << " </div>" << std::endl;
67  data << " </div>" << std::endl;
68  data << " " << std::endl;
69  data << " </div> " << std::endl;
70  data << "" << std::endl;
71  data << " <script>" << std::endl;
72  data << " var mainpage;" << std::endl;
73  data << " var result;" << std::endl;
74  data << " var mousedownx;" << std::endl;
75  data << " var mousedowny;" << std::endl;
76  data << " var mouseDownWidth;" << std::endl;
77  data << " var mouseDownHeight;" << std::endl;
78  data << " var ismousedown = false;" << std::endl;
79  data << " var dragobject;" << std::endl;
80  data << " var dragHint = \"move\";" << std::endl;
81  data << " var data;" << std::endl;
82  data << " var showGrid = false;" << std::endl;
83  data << " var snapToGrid = false;" << std::endl;
84  data << " var gridSize = 10;" << std::endl;
85  data << " var selected;" << std::endl;
86  data << " var itemparameters;" << std::endl;
87  data << "" << std::endl;
88  data << " mainpage = document.getElementById(\"mainpage\");" << std::endl;
89  data << " data = document.getElementById(\"data\");" << std::endl;
90  data << " itemparameters = document.getElementById(\"itemparameters\");" << std::endl;
91  data << " var gridsize = document.getElementById(\"gridsize\");" << std::endl;
92  data << " gridsize.value = gridSize;" << std::endl;
93  data << " drawGrid();" << std::endl;
94  data << "" << std::endl;
95  data << " function drawGrid() {" << std::endl;
96  data << " var grid = document.getElementById(\"grid\");" << std::endl;
97  data << " var context = grid.getContext(\"2d\");" << std::endl;
98  data << " if(showGrid == true) {" << std::endl;
99  data << " context.clearRect(0,0,grid.width,grid.height);" << std::endl;
100  data << " context.globalAlpha = 0.2;" << std::endl;
101  data << " context.lineWidth = 0.5; " << std::endl;
102  data << " for(ix = 0; ix < grid.width; ix += gridSize) {" << std::endl;
103  data << " context.beginPath();" << std::endl;
104  data << " context.moveTo(ix, 0);" << std::endl;
105  data << " context.lineTo(ix, grid.height);" << std::endl;
106  data << " context.stroke();" << std::endl;
107  data << " context.beginPath();" << std::endl;
108  data << " context.moveTo(0, ix);" << std::endl;
109  data << " context.lineTo(grid.width, ix);" << std::endl;
110  data << " context.stroke(); " << std::endl;
111  data << " }" << std::endl;
112  data << " } else {" << std::endl;
113  data << " context.clearRect(0,0,grid.width,grid.height);" << std::endl;
114  data << " }" << std::endl;
115  data << " }" << std::endl;
116  data << "" << std::endl;
117  data << " function setDragHint(hint) {" << std::endl;
118  data << " dragHint = hint;" << std::endl;
119  data << " }" << std::endl;
120  data << " " << std::endl;
121  data << " function getMouseX(e) {" << std::endl;
122  data << " return e.clientX - mainpage.offsetLeft - parseFloat(mainpage.style.borderWidth);" << std::endl;
123  data << " }" << std::endl;
124  data << " " << std::endl;
125  data << " function getMouseY(e) {" << std::endl;
126  data << " return e.clientY - mainpage.offsetTop - parseFloat(mainpage.style.borderWidth);" << std::endl;
127  data << " }" << std::endl;
128  data << "" << std::endl;
129  data << " function mousedown(obj, e) {" << std::endl;
130  data << " var mouseX = getMouseX(e);" << std::endl;
131  data << " var mouseY = getMouseY(e);" << std::endl;
132  data << " mousedownx = mouseX - obj.offsetLeft;" << std::endl;
133  data << " mousedowny = mouseY - obj.offsetTop;" << std::endl;
134  data << " mouseDownLeft = parseFloat(obj.style.left);" << std::endl;
135  data << " mouseDownTop = parseFloat(obj.style.top);" << std::endl;
136  data << " mouseDownWidth = parseFloat(obj.style.width);" << std::endl;
137  data << " mouseDownHeight = parseFloat(obj.style.height);" << std::endl;
138  data << " dragobject = obj;" << std::endl;
139  data << " selected = obj;" << std::endl;
140  data << " ismousedown = true;" << std::endl;
141  data << " displayParameters();" << std::endl;
142  data << " }" << std::endl;
143  data << " " << std::endl;
144  data << " function mouseup() {" << std::endl;
145  data << " ismousedown = false;" << std::endl;
146  data << " dragobject = null;" << std::endl;
147  data << " console.log(mainpage.innerHTML);" << std::endl;
148  data << " }" << std::endl;
149  data << "" << std::endl;
150  data << " function mousemove(e) {" << std::endl;
151  data << " var mouseX = getMouseX(e);" << std::endl;
152  data << " var mouseY = getMouseY(e);" << std::endl;
153  data << " if(ismousedown) {" << std::endl;
154  data << " " << std::endl;
155  data << " if(dragHint == \"move\") {" << std::endl;
156  data << " if(snapToGrid == false) {" << std::endl;
157  data << " dragobject.style.left = (mouseX - mousedownx) + \"px\";" << std::endl;
158  data << " dragobject.style.top = (mouseY - mousedowny) + \"px\";" << std::endl;
159  data << " } else {" << std::endl;
160  data << " dragobject.style.left = (Math.round((mouseX - mousedownx) / gridSize) * gridSize) + \"px\";" << std::endl;
161  data << " dragobject.style.top = (Math.round((mouseY - mousedowny) / gridSize) * gridSize) + \"px\";" << std::endl;
162  data << " }" << std::endl;
163  data << " if((mouseX - mousedownx) < 0)" << std::endl;
164  data << " dragobject.style.left = \"0px\";" << std::endl;
165  data << " if((mouseY - mousedowny) < 0)" << std::endl;
166  data << " dragobject.style.top = \"0px\";" << std::endl;
167  data << " if((mouseX - mousedownx + parseFloat(dragobject.style.width)) > parseFloat(mainpage.style.width)) " << std::endl;
168  data << " dragobject.style.left = (mouseX - mousedownx) + \"px\"; " << std::endl;
169  data << " } else if(dragHint == \"rightbottomresize\") { " << std::endl;
170  data << " dragobject.style.width = (mouseX - mouseDownLeft) + \"px\";" << std::endl;
171  data << " dragobject.style.height = (mouseY - mouseDownTop) + \"px\";" << std::endl;
172  data << " } else if(dragHint == \"rightresize\") { " << std::endl;
173  data << " if(snapToGrid == false) {" << std::endl;
174  data << " dragobject.style.width = (mouseX - mouseDownLeft) + \"px\"; " << std::endl;
175  data << " } else {" << std::endl;
176  data << " dragobject.style.width = (Math.round((mouseX - mouseDownLeft) / gridSize) * gridSize) + \"px\"; " << std::endl;
177  data << " }" << std::endl;
178  data << " } else if(dragHint == \"bottomresize\") { " << std::endl;
179  data << " if(snapToGrid == false) {" << std::endl;
180  data << " dragobject.style.height = (mouseY - mouseDownTop) + \"px\";" << std::endl;
181  data << " } else {" << std::endl;
182  data << " dragobject.style.height = (Math.round((mouseY - mouseDownTop) / gridSize) * gridSize) + \"px\";" << std::endl;
183  data << " }" << std::endl;
184  data << " } else if(dragHint == \"leftresize\") { " << std::endl;
185  data << " dragobject.style.left = mouseX + \"px\";" << std::endl;
186  data << " dragobject.style.width = (mouseDownWidth + (mouseDownLeft - mouseX)) + \"px\";" << std::endl;
187  data << " } else if(dragHint == \"topresize\") { " << std::endl;
188  data << " dragobject.style.top = mouseY + \"px\";" << std::endl;
189  data << " dragobject.style.height = (mouseDownHeight + (mouseDownTop - mouseY)) + \"px\";" << std::endl;
190  data << " }" << std::endl;
191  data << " " << std::endl;
192  data << " data.innerHTML = \"<p>\" + dragobject.nodeName + \"<br>\" + " << std::endl;
193  data << " \"Action: \" + dragHint + \"<br>\" +" << std::endl;
194  data << " \"MouseLocation: \" + mouseX + \":\" + mouseY + \"<br>\" +" << std::endl;
195  data << " \"MouseOver Location: \" + (mouseX - dragobject.offsetLeft) + \":\" + (mouseY - dragobject.offsetTop) + \"<br>\" + " << std::endl;
196  data << " \"Location: \" + dragobject.style.left + \":\" + dragobject.style.top + \"<br>\" + " << std::endl;
197  data << " \"Size: \" + dragobject.style.width + \":\" + dragobject.style.height + \"<br>\" + " << std::endl;
198  data << " \"</p>\";" << std::endl;
199  data << " " << std::endl;
200  data << "" << std::endl;
201  data << " } else {" << std::endl;
202  data << " var mouseabove = document.elementFromPoint(mouseX + mainpage.offsetLeft, mouseY + mainpage.offsetTop);" << std::endl;
203  data << "" << std::endl;
204  data << " if((mouseabove.id != \"mainpage\") && (mouseabove.id != \"grid\")) {" << std::endl;
205  data << " " << std::endl;
206  data << " data.innerHTML = \"<p>\" + mouseabove.nodeName + \"<br>\" + " << std::endl;
207  data << " \"Action: \" + dragHint + \"<br>\" +" << std::endl;
208  data << " \"MouseLocation: \" + mouseX + \":\" + mouseY + \"<br>\" +" << std::endl;
209  data << " \"MouseOver Location: \" + (mouseX - mouseabove.offsetLeft) + \":\" + (mouseY - mouseabove.offsetTop) + \"<br>\" + " << std::endl;
210  data << " \"Location: \" + mouseabove.style.left + \":\" + mouseabove.style.top + \"<br>\" + " << std::endl;
211  data << " \"Size: \" + mouseabove.style.width + \":\" + mouseabove.style.height + \"<br>\" + " << std::endl;
212  data << " \"</p>\";" << std::endl;
213  data << " " << std::endl;
214  data << " if((mouseabove.nodeName == \"DIV\") || " << std::endl;
215  data << " (mouseabove.nodeName == \"IMG\") || " << std::endl;
216  data << " (mouseabove.nodeName == \"BUTTON\") ||" << std::endl;
217  data << " (mouseabove.nodeName == \"INPUT\") ||" << std::endl;
218  data << " (mouseabove.nodeName == \"SPAN\")) {" << std::endl;
219  data << " " << std::endl;
220  data << " if((parseFloat(mouseabove.style.width) <= (mouseX - mouseabove.offsetLeft)) && " << std::endl;
221  data << " (parseFloat(mouseabove.style.height) <= (mouseY - mouseabove.offsetTop))) {" << std::endl;
222  data << " mouseabove.style.cursor = \"nwse-resize\";" << std::endl;
223  data << " dragHint = \"rightbottomresize\"; " << std::endl;
224  data << " } else if((parseFloat(mouseabove.style.left) <= (mouseX - mouseabove.offsetLeft)) && " << std::endl;
225  data << " ((parseFloat(mouseabove.style.borderWidth) + 2) >= (mouseY - mouseabove.offsetTop))) {" << std::endl;
226  data << " mouseabove.style.cursor = \"nesw-resize\";" << std::endl;
227  data << " dragHint = \"righttopresize\"; " << std::endl;
228  data << " } else if(((parseFloat(mouseabove.style.borderWidth) + 2) >= (mouseX - mouseabove.offsetLeft)) && " << std::endl;
229  data << " (parseFloat(mouseabove.style.height) <= (mouseY - mouseabove.offsetTop))) {" << std::endl;
230  data << " mouseabove.style.cursor = \"nesw-resize\";" << std::endl;
231  data << " dragHint = \"leftbottomresize\"; " << std::endl;
232  data << " } else if(parseFloat(mouseabove.style.width) <= (mouseX - mouseabove.offsetLeft)) {" << std::endl;
233  data << " mouseabove.style.cursor = \"ew-resize\";" << std::endl;
234  data << " dragHint = \"rightresize\";" << std::endl;
235  data << " } else if(parseFloat(mouseabove.style.height) <= (mouseY - mouseabove.offsetTop)) {" << std::endl;
236  data << " mouseabove.style.cursor = \"ns-resize\";" << std::endl;
237  data << " dragHint = \"bottomresize\";" << std::endl;
238  data << " } else if((parseFloat(mouseabove.style.borderWidth) + 2) >= (mouseX - mouseabove.offsetLeft)) {" << std::endl;
239  data << " mouseabove.style.cursor = \"ew-resize\";" << std::endl;
240  data << " dragHint = \"leftresize\";" << std::endl;
241  data << " } else if((parseFloat(mouseabove.style.borderWidth) + 2) >= (mouseY - mouseabove.offsetTop)) {" << std::endl;
242  data << " mouseabove.style.cursor = \"ns-resize\";" << std::endl;
243  data << " dragHint = \"topresize\";" << std::endl;
244  data << " } else {" << std::endl;
245  data << " mouseabove.style.cursor = \"move\";" << std::endl;
246  data << " dragHint = \"move\";" << std::endl;
247  data << " }" << std::endl;
248  data << " } else {" << std::endl;
249  data << " mouseabove.style.cursor = \"default\";" << std::endl;
250  data << " }" << std::endl;
251  data << " } else {" << std::endl;
252  data << " mouseabove.style.cursor = \"default\";" << std::endl;
253  data << " dragHint = \"\";" << std::endl;
254  data << " data.innerHTML = \"<p></p>\";" << std::endl;
255  data << " }" << std::endl;
256  data << " }" << std::endl;
257  data << " displayParameters();" << std::endl;
258  data << " }" << std::endl;
259  data << " " << std::endl;
260  data << " function displayParameters() {" << std::endl;
261  data << "" << std::endl;
262  data << " itemparameters.innerHTML = \"<p>\" + selected.nodeName + \": \" + selected.id + \"<br>\" + " << std::endl;
263  data << " \"Location: \" + selected.style.left + \":\" + selected.style.top + \"<br>\" + " << std::endl;
264  data << " \"Size: \" + selected.style.width + \":\" + selected.style.height + \"<br>\" + " << std::endl;
265  data << " \"</p>\";" << std::endl;
266  data << "" << std::endl;
267  data << " }" << std::endl;
268  data << "</script>" << std::endl;
269 
270  httpRequest.response.addHeader("Content-Type", "script/javascript");
271 
272  return 0;
273  }
274 
275  };
276 
277 }
278 
279 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: __editview.h:8
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____favicon__ico_8h_source.html b/docs/html/____favicon__ico_8h_source.html deleted file mode 100644 index 4616753..0000000 --- a/docs/html/____favicon__ico_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__favicon_ico.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__favicon_ico.h
-
-
-
1 #ifndef ____favicon_ico_h__
2 #define ____favicon_ico_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __favicon_ico : public HTTPPage {
9 
10  int processCommand(std::string request,
11  core::Session *session,
12  HTTPSession *httpSession,
13  HTTPRequest &httpRequest,
14  std::stringstream &data) override {
15 
16  data << std::string(header_data, 806);
17 
18  httpRequest.response.addHeader("Content-Type", "image/x-icon");
19  return true;
20  }
21 
22  const char *header_data = {"\x00\x00\x01\x00\x01\x00\x20\x20\x00\x00\x01\x00\x08\x00\xA8\x08\x00"
23  "\x00\x16\x00\x00\x00\x28\x00\x00\x00\x20\x00\x00\x00\x40\x00\x00\x00"
24  "\x01\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
25  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xF0\x99\x20\x00\xF0\x99"
26  "\x21\x00\xF0\x99\x22\x00\xF0\x9A\x23\x00\xF0\x9A\x24\x00\xF0\x9A\x25"
27  "\x00\xF0\x9A\x26\x00\xF0\x9A\x28\x00\xF0\x9A\x29\x00\xF0\x9B\x26\x00"
28  "\xF0\x9B\x28\x00\xF0\x9B\x29\x00\xF0\x9B\x2A\x00\xF0\x9B\x2B\x00\xF0"
29  "\x9C\x28\x00\xF0\x9C\x29\x00\xF0\x9B\x2D\x00\xF0\x9C\x2A\x00\xF0\x9C"
30  "\x2B\x00\xF0\x9C\x2F\x00\xF0\x9C\x30\x00\xF0\x9C\x31\x00\xF0\x9C\x33"
31  "\x00\xF0\x9D\x32\x00\xF1\x9D\x36\x00\xF0\x9D\x37\x00\xF0\x9D\x38\x00"
32  "\xF1\x9E\x35\x00\xF1\x9E\x38\x00\xF1\x9F\x39\x00\xF1\x9F\x3E\x00\xF1"
33  "\xA0\x41\x00\xF1\xA0\x42\x00\xF1\xA1\x40\x00\xF1\xA0\x44\x00\xF1\xA2"
34  "\x3E\x00\xF1\xA1\x45\x00\xF1\xA1\x46\x00\xF1\xA1\x47\x00\xF1\xA1\x48"
35  "\x00\xF1\xA2\x45\x00\xF1\xA3\x49\x00\xF1\xA3\x4D\x00\xF1\xA4\x4B\x00"
36  "\xF1\xA3\x4F\x00\xF1\xA4\x4F\x00\xF1\xA4\x50\x00\xF1\xA4\x51\x00\xF1"
37  "\xA4\x52\x00\xF1\xA5\x4F\x00\xF2\xA5\x4F\x00\xF1\xA6\x54\x00\xF2\xA6"
38  "\x54\x00\xF2\xA6\x57\x00\xF2\xA6\x58\x00\xF2\xA7\x55\x00\xF2\xA7\x58"
39  "\x00\xF2\xA7\x59\x00\xF2\xA7\x5B\x00\xF2\xAA\x5A\x00\xF2\xA9\x60\x00"
40  "\xF2\xAA\x61\x00\xF2\xAB\x64\x00\xF2\xAB\x66\x00\xF2\xAD\x65\x00\xF2"
41  "\xAC\x69\x00\xF2\xAD\x69\x00\xF2\xAD\x6B\x00\xF3\xAE\x6C\x00\xF2\xAE"
42  "\x6E\x00\xF3\xAE\x6E\x00\xF3\xAF\x6F\x00\xF3\xAF\x70\x00\xF3\xAF\x71"
43  "\x00\xF3\xB0\x72\x00\xF3\xB2\x76\x00\xF3\xB2\x77\x00\xF3\xB3\x79\x00"
44  "\xF3\xB4\x7A\x00\xF3\xB4\x7B\x00\xF3\xB4\x7C\x00\xF3\xB4\x7D\x00\xF3"
45  "\xB5\x7C\x00\xF3\xB5\x7D\x00\xF3\xB5\x7F\x00\xF4\xB6\x80\x00\xF4\xB7"
46  "\x81\x00\xF4\xB7\x82\x00\xF4\xB7\x83\x00\xF4\xB8\x83\x00\xF4\xB8\x84"
47  "\x00\xF4\xB9\x84\x00\xF4\xB9\x85\x00\xF4\xB9\x86\x00\xF4\xB9\x87\x00"
48  "\xF4\xBB\x89\x00\xF4\xBB\x8C\x00\xF4\xBC\x8C\x00\xF4\xBC\x8D\x00\xF4"
49  "\xBD\x8E\x00\xF4\xBD\x8F\x00\xF4\xBD\x90\x00\xF5\xBE\x90\x00\xF5\xBF"
50  "\x94\x00\xF5\xC0\x94\x00\xF5\xC0\x95\x00\xF5\xC0\x96\x00\xF5\xC2\x98"
51  "\x00\xF5\xC3\x9C\x00\xF5\xC4\x9D\x00\xF5\xC4\x9E\x00\xF6\xC5\xA0\x00"
52  "\xF6\xC6\xA0\x00\xF6\xC6\xA1\x00\xF6\xC6\xA2\x00\xF6\xC7\xA2\x00\xF6"
53  "\xC7\xA3\x00\xF6\xC7\xA4\x00\xF6\xC8\xA4\x00\xF6\xC8\xA5\x00\xF6\xC8"
54  "\xA6\x00\xF6\xC9\xA5\x00\xF6\xCA\xA9\x00\xF6\xCB\xAA\x00\xF7\xCC\xAC"
55  "\x00\xF7\xCC\xAD\x00\xF7\xCD\xAD\x00\xF7\xCD\xAE\x00\xF7\xCE\xAD\x00"
56  "\xF7\xCE\xAF\x00\xF7\xCE\xB0\x00\xF7\xCF\xB0\x00\xF7\xCF\xB1\x00\xF7"
57  "\xCF\xB2\x00\xF7\xD0\xB4\x00\xF7\xD1\xB3\x00\xF7\xD1\xB4\x00\xF7\xD1"
58  "\xB5\x00\xF7\xD1\xB6\x00\xF7\xD2\xB7\x00\xF8\xD3\xB8\x00\xF8\xD3\xB9"
59  "\x00\xF8\xD4\xB9\x00\xF8\xD5\xBB\x00\xF8\xD5\xBC\x00\xF8\xD5\xBD\x00"
60  "\xF8\xD6\xBC\x00\xF8\xD6\xBD\x00\xF8\xD7\xBE\x00\xF8\xD7\xBF\x00\xF8"
61  "\xD8\xBF\x00\xF8\xD8\xC0\x00\xF9\xDC\xC8\x00\xF9\xDD\xC8\x00\xF9\xDD"
62  "\xC9\x00\xF9\xDD\xCA\x00\xF9\xDF\xCC\x00\xFA\xDF\xCC\x00\xFA\xDF\xCD"
63  "\x00\xFA\xE0\xCE\x00\xFA\xE1\xCF\x00\xFA\xE1\xD0\x00\xFA\xE2\xD0\x00"
64  "\xFA\xE2\xD2\x00\xFA\xE3\xD2\x00\xFB\xE5\xD6\x00\xFB\xE6\xD7\x00\xFB"
65  "\xE8\xDB\x00\xFB\xE9\xDB\x00\xFB\xE9\xDC\x00\xFB\xEA\xDE\x00\xFC\xED"
66  "\xE2\x00\xFC\xED\xE3\x00\xFC\xEE\xE4\x00\xFC\xEF\xE5\x00\xFC\xEF\xE6"
67  "\x00\xFC\xF0\xE7\x00\xFC\xF1\xE9\x00\xFD\xF2\xEB\x00\xFD\xF3\xEB\x00"
68  "\xFD\xF3\xEC\x00\xFD\xF3\xED\x00\xFD\xF4\xED\x00\xFD\xF4\xEE\x00\xFD"
69  "\xF5\xEF\x00\xFD\xF6\xEF\x00\xFD\xF6\xF0\x00\xFE\xF7\xF1\x00\xFE\xF7"
70  "\xF2\x00\xFE\xF7\xF3\x00\xFE\xF8\xF4\x00\xFE\xF9\xF5\x00\xFE\xF9\xF6"
71  "\x00\xFE\xFA\xF7\x00\xFE\xFA\xF8\x00\xFE\xFB\xF8\x00\xFE\xFB\xF9\x00"
72  "\xFE\xFC\xF9\x00\xFE\xFC\xFA\x00\xFF\xFD\xFB\x00\xFF\xFD\xFC\x00\xFF"
73  "\xFE\xFC\x00\xFF\xFE\xFD\x00\xFF\xFE\xFE\x00\xFF\xFF\xFE\x00\xFF\xFF"
74  "\xFF\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
75  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
76  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
77  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
78  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
79  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
80  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
81  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
82  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
83  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
84  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
85  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xCD\xCD"
86  "\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xC0\xA2\x75\x53\x2B\x0E\x12\x37\x58"
87  "\x7A\xA6\xC4\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD"
88  "\xCD\xCD\xCD\xCD\xB2\x74\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
89  "\x26\x7F\xBC\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD"
90  "\xC5\x7F\x13\x00\x00\x00\x2F\x6A\x82\x3E\x3E\x7D\x65\x1F\x00\x00\x00"
91  "\x1E\x94\xCA\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xB3\x47\x00"
92  "\x00\x15\x73\xAB\xCA\xCD\xCD\x5F\x5F\xCD\xCD\xC7\xA7\x67\x04\x00\x00"
93  "\x5E\xBE\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xAE\x30\x00\x00\x63\xB4"
94  "\xCD\xCD\xCD\xCD\xC9\x5B\x5C\xCA\xCD\xCD\xCD\xCD\xAD\x4D\x00\x00\x41"
95  "\xBA\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xB4\x30\x00\x08\x94\xCC\xCD\xCD\xB6"
96  "\x8A\x52\x17\x01\x02\x1D\x5E\x93\xBD\xCD\xCD\xC8\x7B\x01\x00\x43\xBF"
97  "\xCD\xCD\xCD\xCD\xCD\xC6\x49\x00\x07\x9F\xCD\xCD\xBE\x71\x0D\x00\x00"
98  "\x00\x00\x00\x00\x00\x00\x1A\x84\xC5\xCD\xCD\x8C\x00\x00\x64\xCC\xCD"
99  "\xCD\xCD\xCD\x82\x00\x00\x94\xCD\xCD\xAC\x39\x00\x00\x06\x5E\x87\x9B"
100  "\x98\x81\x4F\x00\x00\x00\x48\xB7\xCD\xCD\x77\x00\x00\x9A\xCD\xCD\xCD"
101  "\xB4\x14\x00\x62\xCC\xCD\xAC\x20\x00\x03\x6F\xB7\xCD\xCD\xCD\xCD\xCD"
102  "\xCD\xB0\x60\x00\x00\x3A\xB8\xCD\xC6\x45\x00\x2D\xC2\xCD\xCD\x76\x00"
103  "\x10\xB4\xCD\xBE\x38\x00\x16\xA0\xCD\xCD\xCD\xC7\xB9\xBB\xCA\xCD\xCD"
104  "\xCC\x8F\x04\x00\x4C\xC7\xCD\xA7\x00\x00\x93\xCD\xC1\x1C\x00\x72\xCD"
105  "\xCD\x70\x00\x01\xA0\xCD\xCD\xB7\x70\x1F\x00\x00\x2A\x7E\xBE\xCD\xCD"
106  "\x8C\x00\x00\x90\xCD\xCD\x55\x00\x3F\xCB\xA4\x00\x00\xAB\xCD\xB3\x07"
107  "\x00\x71\xCD\xCD\xA9\x24\x00\x00\x00\x00\x00\x00\x3A\xB1\xCD\xCA\x56"
108  "\x00\x27\xC3\xCD\x9C\x00\x00\xAF\x77\x00\x2E\xCA\xCD\x86\x00\x0B\xB8"
109  "\xCD\xB6\x20\x00\x00\x00\x00\x00\x00\x00\x00\x3C\xC1\xCD\xAA\x00\x00"
110  "\x9E\xCD\xBE\x08\x00\x97\x54\x00\x6A\xCD\xCD\x4F\x00\x62\xCD\xCD\x6D"
111  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x8B\xCD\xCB\x3C\x00\x6C\xCD"
112  "\xCD\x42\x00\x6E\x32\x00\x85\xCD\xC8\x11\x00\x8C\xCD\xC5\x14\x00\x00"
113  "\x00\x00\x00\x00\x00\x00\x00\x00\x42\xCD\xCD\x70\x00\x4A\xCD\xCD\x69"
114  "\x00\x5A\x0F\x00\x91\xCD\xBB\x00\x00\x4B\x6B\x66\x00\x00\x00\x00\x00"
115  "\x00\x00\x00\x00\x00\x00\x01\x80\x83\x50\x00\x23\xCD\xCD\x78\x00\x3B"
116  "\x0F\x00\x91\xCD\xBB\x00\x00\x33\x44\x3E\x00\x00\x00\x00\x00\x00\x00"
117  "\x00\x00\x00\x00\x00\x29\x28\x17\x00\x23\xCD\xCD\x78\x00\x40\x31\x00"
118  "\x85\xCD\xC8\x11\x00\x8D\xCD\xC5\x14\x00\x00\x00\x00\x00\x00\x00\x00"
119  "\x00\x00\x42\xCC\xCB\x6F\x00\x4A\xCD\xCD\x69\x00\x59\x54\x00\x6A\xCD"
120  "\xCD\x4E\x00\x62\xCD\xCD\x6D\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00"
121  "\x8B\xCD\xCB\x3D\x00\x6C\xCD\xCD\x42\x00\x6E\x76\x00\x2E\xCA\xCD\x86"
122  "\x00\x0B\xB8\xCD\xB5\x20\x00\x00\x00\x00\x00\x00\x00\x00\x3C\xC1\xCD"
123  "\xAA\x00\x00\x9D\xCD\xBE\x08\x00\x97\xA3\x00\x00\xAB\xCD\xB3\x07\x00"
124  "\x71\xCD\xCD\xA9\x22\x00\x00\x00\x00\x00\x00\x3A\xB1\xCD\xCA\x57\x00"
125  "\x26\xC3\xCD\x9D\x00\x00\xAF\xC1\x1C\x00\x73\xCD\xCD\x70\x00\x01\xA0"
126  "\xCD\xCD\xB7\x70\x1F\x00\x00\x2A\x7E\xBE\xCD\xCD\x8E\x00\x00\x8F\xCD"
127  "\xCD\x56\x00\x3F\xCB\xCD\x76\x00\x10\xB5\xCD\xBE\x35\x00\x16\xA0\xCD"
128  "\xCD\xCD\xC7\xB9\xBB\xCA\xCD\xCD\xCC\x92\x05\x00\x4C\xC7\xCD\xA8\x00"
129  "\x00\x93\xCD\xCD\xB4\x13\x00\x62\xCC\xCD\xAC\x20\x00\x03\x70\xB7\xCD"
130  "\xCD\xCD\xCD\xCD\xCD\xB0\x61\x00\x00\x3A\xB8\xCD\xC6\x45\x00\x2C\xC2"
131  "\xCD\xCD\xCD\x82\x00\x00\x95\xCD\xCD\xAC\x36\x00\x00\x09\x5E\x88\x9B"
132  "\x98\x81\x50\x00\x00\x00\x48\xB7\xCD\xCD\x79\x00\x00\x99\xCD\xCD\xCD"
133  "\xCD\xC6\x48\x00\x0A\x9F\xCD\xCD\xBE\x70\x0C\x00\x00\x00\x00\x00\x00"
134  "\x00\x00\x19\x84\xC5\xCD\xCD\x8C\x00\x00\x64\xCB\xCD\xCD\xCD\xCD\xCD"
135  "\xB3\x2F\x00\x08\x96\xCC\xCD\xCD\xB4\x89\x50\x17\x00\x02\x1C\x5D\x90"
136  "\xBC\xCD\xCD\xC8\x7B\x01\x00\x43\xBF\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xAE"
137  "\x2F\x00\x00\x64\xB5\xCD\xCD\xCD\xCD\xC8\x1D\x7C\xCA\xCD\xCD\xCD\xCD"
138  "\xAD\x4D\x00\x00\x41\xBA\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xB3\x46"
139  "\x00\x00\x16\x73\xAB\xCA\xCD\xCD\x21\x81\xCD\xCD\xC7\xA7\x68\x04\x00"
140  "\x00\x5D\xBE\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xC5\x7E\x13"
141  "\x00\x00\x00\x2F\x6A\x82\x1B\x51\x7E\x65\x20\x00\x00\x00\x1E\x94\xCA"
142  "\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xB2\x73\x18"
143  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x25\x7E\xBB\xCD\xCD\xCD\xCD"
144  "\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xC0\xA1\x75"
145  "\x51\x2B\x0E\x12\x34\x58\x7A\xA5\xC4\xCD\xCD\xCD\xCD\xCD\xCD\xCD\xCD"
146  "\xCD\xCD\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
147  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
148  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
149  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
150  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
151  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
152  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
153  "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"};
154 
155  };
156 }
157 
158 #endif
Definition: HTTPSession.h:9
-
Definition: __favicon_ico.h:8
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____index_8h_source.html b/docs/html/____index_8h_source.html deleted file mode 100644 index 62d8054..0000000 --- a/docs/html/____index_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__index.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__index.h
-
-
-
1 #ifndef ____index_h__
2 #define ____index_h__
3 
4 #include "HTTPPage.h"
5 #include "HTTPRequest.h"
6 
7 namespace http {
8 
9  class __index : public HTTPPage {
10 
11  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
12 
13  data << "<html>" << std::endl;
14  data << " <head>" << std::endl;
15  data << " <link rel=\"icon\" type=\"image/x-icon\" href=\"/favicon.ico\" />" << std::endl;
16  data << " <link type=\"text/css\" rel=\"stylesheet\" href=\"/style\" />" << std::endl;
17  data << " <script src=\"/script\"></script>" << std::endl;
18  data << " </head>" << std::endl;
19 
20  data << "<body ondragstart=\"return false;\" " << std::endl;
21  data << " ondrop=\"return false;\" " << std::endl;
22  data << " onLoad=\"getPage('/welcome','main');\">" << std::endl;
23  data << " <div id=\"main\">If you see this then something is wrong.</div>" << std::endl;
24  data << " </body>" << std::endl;
25  data << "</html>" << std::endl;
26 
27  httpRequest.response.addHeader("Content-Type", "text/html");
28  return true;
29  }
30  };
31 }
32 
33 #endif
Definition: HTTPSession.h:9
-
Definition: __index.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____mainmenu_8h_source.html b/docs/html/____mainmenu_8h_source.html deleted file mode 100644 index 5cdc8a1..0000000 --- a/docs/html/____mainmenu_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__mainmenu.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__mainmenu.h
-
-
-
1 #ifndef ____mainmenu_h__
2 #define ____mainmenu_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __mainmenu : public HTTPPage {
9 
10  int processCommand(std::string request,
11  core::Session *session,
12  HTTPSession *httpSession,
13  HTTPRequest &httpRequest,
14  std::stringstream &data) override {
15 
16  data << "<div>" << std::endl;
17  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
18  data << " onmousedown=\"getPage('/configure','main');\">" << std::endl;
19  data << " <span>Setup Server Parameters</span>" << std::endl;
20  data << " </div>" << std::endl;
21  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
22  data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
23  data << " <span>View and Layout Designer</span>" << std::endl;
24  data << " </div>" << std::endl;
25  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
26  data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
27  data << " <span>Data Entity Editor</span>" << std::endl;
28  data << " </div>" << std::endl;
29  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
30  data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
31  data << " <span>Work Flow Process Management</span>" << std::endl;
32  data << " </div>" << std::endl;
33  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
34  data << " onmousedown=\"getPage('/viewlist','main');\">" << std::endl;
35  data << " <span>Storyboard</span>" << std::endl;
36  data << " </div>" << std::endl;
37  data << "</div>" << std::endl;
38 
39  httpRequest.response.addHeader("Content-Type", "text/html");
40 
41  return true;
42  }
43  };
44 }
45 
46 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: __mainmenu.h:8
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____newview_8h_source.html b/docs/html/____newview_8h_source.html deleted file mode 100644 index 915d245..0000000 --- a/docs/html/____newview_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__newview.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__newview.h
-
-
-
1 #ifndef ____newview_h__
2 #define ____newview_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __newview : public HTTPPage {
9 
10  int processCommand(std::string request,
11  core::Session *session,
12  HTTPSession *httpSession,
13  HTTPRequest &httpRequest,
14  std::stringstream &data) override {
15 
16 
17  httpRequest.response.addHeader("Content-Type", "text/html");
18  return 0;
19  }
20 
21  };
22 
23 }
24 
25 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
Definition: __newview.h:8
-
- - - - diff --git a/docs/html/____script_8h_source.html b/docs/html/____script_8h_source.html deleted file mode 100644 index bbb7e4a..0000000 --- a/docs/html/____script_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__script.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__script.h
-
-
-
1 #ifndef ____script_h__
2 #define ____script_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __script : public HTTPPage {
9 
10  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
11 
12  data << "function serverSend(url, type, receiver, formData, callback) {" << std::endl;
13  data << " var server = new XMLHttpRequest();" << std::endl;
14  data << " server.onload = function() {" << std::endl;
15  data << " if(server.readyState == 4 && server.status == 200)" << std::endl;
16  data << " callback(server.responseText, receiver);" << std::endl;
17  data << " };" << std::endl;
18  data << " server.open(type, url, true);" << std::endl;
19  data << " server.send(formData);" << std::endl;
20  data << "}" << std::endl;
21 
22  data << "function getPage(url, receiver) {" << std::endl;
23  data << " serverSend(url, \"GET\", receiver, null, function(data, receiver) {" << std::endl;
24  data << " insertAndExecute(receiver, data);" << std::endl;
25  data << " });" << std::endl;
26  data << "}" << std::endl;
27 
28  data << "function process(url, formName, receiver) {" << std::endl;
29  data << " var formElement = document.querySelector(\"form[name='\" + formName + \"']\");" << std::endl;
30  data << " var formData = new FormData(formElement);" << std::endl;
31  data << " serverSend(url, \"POST\", receiver, formData, function(data, receiver) {" << std::endl;
32  data << " insertAndExecute(receiver, data);" << std::endl;
33  data << " });" << std::endl;
34  data << "}" << std::endl;
35 
36  data << "function insertAndExecute(id, text) {" << std::endl;
37  data << " idresolved = document.getElementById(id);" << std::endl;
38  data << " idresolved.innerHTML = text;" << std::endl;
39  data << " var script = idresolved.getElementsByTagName(\"script\");" << std::endl;
40  data << " for(var ix=0;ix<script.length;ix++) {" << std::endl;
41  data << " eval(script[ix].text);" << std::endl;
42  data << " }" << std::endl;
43  data << "}" << std::endl;
44 
45  httpRequest.response.addHeader("Content-Type", "text/javascript");
46 
47  return true;
48  }
49  };
50 }
51 
52 #endif
Definition: __script.h:8
-
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____setupadmin_8h_source.html b/docs/html/____setupadmin_8h_source.html deleted file mode 100644 index bff839b..0000000 --- a/docs/html/____setupadmin_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__setupadmin.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__setupadmin.h
-
-
-
1 #ifndef ____setupadmin_h__
2 #define ____setupadmin_h__
3 
4 namespace http {
5 
6  class __setupadmin : public HTTPPage {
7 
8  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
9 
10  data << "<form name=\"setupadmin\" action=\"setupadmin\" method=\"POST\">" << std::endl;
11  data << " <div class=\"window\"><p>Please enter credential information" << std::endl;
12  data << " for the security officer, then press Set Admin Profile button below:" << std::endl;
13  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
14  data << " <div>User Name:</div>" << std::endl;
15  data << " <input type=\"text\" name=\"username\" size=\"30\">" << std::endl;
16  data << " </div>" << std::endl;
17  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
18  data << " <div>Password:</div>" << std::endl;
19  data << " <input type=\"password\" name=\"password\" size=\"30\">" << std::endl;
20  data << " </div>" << std::endl;
21  data << " <div style=\"border: 1pt solid white; padding: 3px; margin-bottom: 5px;\">" << std::endl;
22  data << " <div>Verify Password:</div>" << std::endl;
23  data << " <input type=\"password\" name=\"verify\" size=\"30\">" << std::endl;
24  data << " </div>" << std::endl;
25  data << " <br><br>Session Id: " << httpSession->getSessionId() << "" << std::endl;
26  data << " <br>The configuration has not yet been established for this web site.</p>" << std::endl;
27  data << " <input type=\"button\" onmousedown=\"process('/mainmenu','setupadmin', 'main'); return true;\" name=\"button1\" value=\"Set Admin Profile\">" << std::endl;
28  data << " </div></form>" << std::endl;
29 
30  httpRequest.response.addHeader("Content-Type", "text/html");
31 
32  return true;
33  }
34  };
35 }
36 
37 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
Definition: __setupadmin.h:6
-
- - - - diff --git a/docs/html/____style_8h_source.html b/docs/html/____style_8h_source.html deleted file mode 100644 index 724458a..0000000 --- a/docs/html/____style_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__style.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__style.h
-
-
-
1 #ifndef ____style_h__
2 #define ____style_h__
3 
4 #include "HTTPPage.h"
5 
6 namespace http {
7 
8  class __style : public HTTPPage {
9 
10  int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, HTTPRequest &httpRequest, std::stringstream &data) override {
11 
12  data << "body {background: #006;" << std::endl;
13  data << " color: #fff;" << std::endl;
14  data << " }" << std::endl;
15 
16  data << ".window {background: #668;" << std::endl;
17  data << " color: #fff;" << std::endl;
18  data << " border: 1pt solid #f00;" << std::endl;
19  data << " width: 400px;" << std::endl;
20  data << " padding: 15px;" << std::endl;
21  data << " }" << std::endl;
22 
23  httpRequest.response.addHeader("Content-Type", "text/css");
24  return true;
25  }
26  };
27 }
28 
29 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: __style.h:8
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____viewlist_8h_source.html b/docs/html/____viewlist_8h_source.html deleted file mode 100644 index fb844f6..0000000 --- a/docs/html/____viewlist_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__viewlist.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__viewlist.h
-
-
-
1 #ifndef ____viewlist_h__
2 #define ____viewlist_h__
3 
4 #include "HTTPPage.h"
5 #include "Directory.h"
6 
7 namespace http {
8 
9  class __viewlist : public HTTPPage {
10 
11  int processCommand(std::string request,
12  core::Session *session,
13  HTTPSession *httpSession,
14  HTTPRequest &httpRequest,
15  std::stringstream &data) override {
16 
17  coreutils::Directory directory("/home/bradarant/jetserver/views");
18 
19  data << "<div>" << std::endl;
20 
21  data << " <div style=\"background: #484; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
22  data << " onmousedown=\"getPage('/newview','main');\">" << std::endl;
23  data << " <span>Create new view</span>" << std::endl;
24  data << " </div>" << std::endl;
25 
26  while(!directory.eod()) {
27 
28  if(directory.get().getName().substr(0, 1) == ".") {
29  directory.next();
30  continue;
31  }
32 
33  data << " <div style=\"background: #448; color: #fff; width: 400px; margin: 5px; padding: 5px; cursor: pointer;\"" << std::endl;
34  data << " onmousedown=\"getPage('/newview','main');\">" << std::endl;
35  data << " <span>" << directory.get().getName() << "</span>" << std::endl;
36  data << " </div>" << std::endl;
37  directory.next();
38  }
39 
40  data << "</div>" << std::endl;
41 
42  httpRequest.response.addHeader("Content-Type", "text/html");
43 
44  return true;
45  }
46  };
47 }
48 
49 #endif
Definition: __viewlist.h:9
-
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/____welcome_8h_source.html b/docs/html/____welcome_8h_source.html deleted file mode 100644 index 5554edf..0000000 --- a/docs/html/____welcome_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/__welcome.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/__welcome.h
-
-
-
1 #ifndef ____welcome_h__
2 #define ____welcome_h__
3 
4 #include "HTTPPage.h"
5 #include "BMAMySQL.h"
6 
7 namespace http {
8 
9  class __welcome : public HTTPPage {
10 
11  int processCommand(std::string request,
12  core::Session *session,
13  HTTPSession *httpSession,
14  HTTPRequest &httpRequest,
15  std::stringstream &data) override {
16 
17  data << "<div class=\"window\">\
18  <p>You have successfully set up a JETServer.\
19  <br>Session Id: " << httpSession->getSessionId() << "\
20  <br>The configuration has not yet been established for this web site.</p>\
21  <input type=\"button\" onmousedown=\"getPage('/setupadmin','main'); return true;\" name=\"button1\" value=\"Configure\">\
22  </div>";
23 
24  httpRequest.response.addHeader("Content-Type", "text/html");
25 
26  return true;
27  }
28  };
29 }
30 
31 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
Definition: __welcome.h:9
-
- - - - diff --git a/docs/html/_h_t_t_p_handler_8h_source.html b/docs/html/_h_t_t_p_handler_8h_source.html deleted file mode 100644 index 5b9b617..0000000 --- a/docs/html/_h_t_t_p_handler_8h_source.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPHandler.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPHandler.h
-
-
-
1 #ifndef __HTTPHandler_h__
2 #define __HTTPHandler_h__
3 
4 #include "Command.h"
5 #include "Session.h"
6 #include "Log.h"
7 
8 namespace http {
9 
10  class HTTPHandler : public core::Command {
11 
12  public:
13  int processCommand(std::string request, core::Session *session, std::stringstream &data) override;
14 
15  };
16 
17 }
18 
19 #endif
Definition: HTTPHandler.h:10
-
Definition: __configure.h:4
-
- - - - diff --git a/docs/html/_h_t_t_p_page_8h_source.html b/docs/html/_h_t_t_p_page_8h_source.html deleted file mode 100644 index 1c6621c..0000000 --- a/docs/html/_h_t_t_p_page_8h_source.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPPage.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPPage.h
-
-
-
1 #ifndef __HTTPPage_h__
2 #define __HTTPPage_h__
3 
4 #include "HTTPSession.h"
5 #include "HTTPRequest.h"
6 #include "Session.h"
7 #include "Log.h"
8 
9 namespace http {
10 
11  class HTTPPage : public core::Object {
12 
13  public:
14  bool check(std::string request) {
15  if(request != "") {
16  if(name.length() > 0) {
17  if(name == request)
18  return true;
19  }
20  return false;
21  }
22  return false;
23  }
24 
25  virtual int processCommand(std::string request,
26  core::Session *session,
27  HTTPSession *httpSession,
28  HTTPRequest &httpRequest,
29  std::stringstream &data) {
30  return false;
31  }
32 
33  };
34 
35 }
36 
37 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPPage.h:11
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/_h_t_t_p_page_list_8h_source.html b/docs/html/_h_t_t_p_page_list_8h_source.html deleted file mode 100644 index d9aefe9..0000000 --- a/docs/html/_h_t_t_p_page_list_8h_source.html +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPPageList.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPPageList.h
-
-
-
1 #ifndef __HTTPPageList_h__
2 #define __HTTPPageList_h__
3 
4 #include "Session.h"
5 #include "HTTPRequest.h"
6 #include "__index.h"
7 #include "__script.h"
8 #include "__editview.h"
9 #include "__style.h"
10 #include "__setupadmin.h"
11 #include "__favicon_ico.h"
12 #include "__welcome.h"
13 #include "__mainmenu.h"
14 #include "__newview.h"
15 #include "__configure.h"
16 #include "__viewlist.h"
17 
18 namespace http {
19 
20  class HTTPPageList {
21 
22  public:
23  HTTPPageList() {
24  add(index, "/");
25  add(script, "/script");
26  add(editview, "/editview");
27  add(style, "/style");
28  add(setupadmin, "/setupadmin");
29  add(favicon_ico, "/favicon.ico");
30  add(welcome, "/welcome");
31  add(mainmenu, "/mainmenu");
32  add(newview, "/newview");
33  add(configure, "/configure");
34  add(viewlist, "/viewlist");
35  }
36 
37  bool processRequest(HTTPRequest &httpRequest, core::Session *session, HTTPSession *httpSession, std::stringstream &data);
38 
39  void add(HTTPPage &page, std::string name = "");
40 
41  void remove(HTTPPage &page);
42 
43  protected:
44  std::vector<HTTPPage *> pages;
45 
46  private:
47  __index index;
48  __script script;
49  __style style;
50  __editview editview;
51  __setupadmin setupadmin;
52  __favicon_ico favicon_ico;
53  __welcome welcome;
54  __mainmenu mainmenu;
55  __newview newview;
56  __configure configure;
57  __viewlist viewlist;
58 
59  };
60 
61 }
62 
63 #endif
Definition: __script.h:8
-
Definition: __viewlist.h:9
-
Definition: HTTPSession.h:9
-
Definition: __index.h:9
-
Definition: __favicon_ico.h:8
-
Definition: __configure.h:4
-
Definition: __style.h:8
-
Definition: __mainmenu.h:8
-
Definition: HTTPPage.h:11
-
Definition: __editview.h:8
-
Definition: HTTPRequest.h:11
-
Definition: __newview.h:8
-
Definition: HTTPPageList.h:20
-
Definition: __setupadmin.h:6
-
Definition: __configure.h:6
-
Definition: __welcome.h:9
-
- - - - diff --git a/docs/html/_h_t_t_p_request_8h_source.html b/docs/html/_h_t_t_p_request_8h_source.html deleted file mode 100644 index 3f634ab..0000000 --- a/docs/html/_h_t_t_p_request_8h_source.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPRequest.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPRequest.h
-
-
-
1 #ifndef __HTTPRequest_h__
2 #define __HTTPRequest_h__
3 
4 #include "PString.h"
5 #include "IMFMessage.h"
6 #include "IMFRequest.h"
7 #include "IMFResponse.h"
8 
9 namespace http {
10 
11  class HTTPRequest : public coreutils::IMFMessage {
12 
13  public:
14  HTTPRequest();
15  HTTPRequest(coreutils::PString &in) {
16  request = coreutils::IMFRequest(in);
17  parse(in);
18  }
19 
20  coreutils::IMFRequest request;
21  coreutils::IMFResponse response;
22 
23  };
24 
25 }
26 
27 #endif
Definition: __configure.h:4
-
Definition: HTTPRequest.h:11
-
- - - - diff --git a/docs/html/_h_t_t_p_service_8h_source.html b/docs/html/_h_t_t_p_service_8h_source.html deleted file mode 100644 index 8f283d8..0000000 --- a/docs/html/_h_t_t_p_service_8h_source.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPService.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPService.h
-
-
-
1 #ifndef __HTTPService_h__
2 #define __HTTPService_h__
3 
4 #include "Service.h"
5 #include "HTTPSessions.h"
6 #include "HTTPPageList.h"
7 #include "Exception.h"
8 #include "HTTPHandler.h"
9 
10 namespace http {
11 
12  class HTTPService : public core::Service {
13 
14  public:
15  HTTPService() {
16  commands.add(getHandler, "GET");
17  commands.add(postHandler, "POST");
18  }
19 
20  HTTPSessions httpSessions;
21  HTTPPageList pageList;
22 
23  private:
24  HTTPHandler getHandler;
25  HTTPHandler postHandler;
26 
27  };
28 
29 }
30 
31 #endif
Definition: HTTPService.h:12
-
Definition: HTTPHandler.h:10
-
Definition: __configure.h:4
-
Definition: HTTPSessions.h:10
-
Definition: HTTPPageList.h:20
-
- - - - diff --git a/docs/html/_h_t_t_p_session_8h_source.html b/docs/html/_h_t_t_p_session_8h_source.html deleted file mode 100644 index 59ec832..0000000 --- a/docs/html/_h_t_t_p_session_8h_source.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPSession.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPSession.h
-
-
-
1 #ifndef __HTTPSession_h__
2 #define __HTTPSession_h__
3 
4 #include "includes"
5 #include "Variables.h"
6 
7 namespace http {
8 
9  class HTTPSession {
10 
11  public:
12  HTTPSession();
13  HTTPSession(std::string sessionId);
14  std::string getSessionId();
15 
16 // jet::Variables sessionVariables;
17 // jet::Variables cgiFormVariables;
18 
19  private:
20  std::string sessionId;
21 
22  };
23 
24 }
25 
26 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
- - - - diff --git a/docs/html/_h_t_t_p_sessions_8h_source.html b/docs/html/_h_t_t_p_sessions_8h_source.html deleted file mode 100644 index 7fb75a8..0000000 --- a/docs/html/_h_t_t_p_sessions_8h_source.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - -JETServer: /home/bradarant/barant/HTTPServer/HTTPSessions.h Source File - - - - - - - - - -
-
- - - - - - -
-
JETServer -
-
-
- - - - - - - -
- -
-
- - -
- -
- -
-
-
/home/bradarant/barant/HTTPServer/HTTPSessions.h
-
-
-
1 #ifndef __HTTPSessions_h__
2 #define __HTTPSessions_h__
3 
4 #include "HTTPRequest.h"
5 
6 namespace http {
7 
8  class HTTPSession;
9 
10  class HTTPSessions {
11 
12  public:
13  HTTPSession * findSessionByHeader(HTTPRequest &httpRequest);
14  HTTPSession * findSessionById(std::string sessionId, HTTPRequest &httpRequest);
15 
16  private:
17  HTTPSession * createHTTPSession();
18  std::string generateSessionId();
19 
20  std::map<std::string, HTTPSession*> sessions;
21 
22  };
23 
24 }
25 
26 #endif
Definition: HTTPSession.h:9
-
Definition: __configure.h:4
-
Definition: HTTPSessions.h:10
-
Definition: HTTPRequest.h:11
-
- - - -