[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9_2-71-g
From: |
Giuseppe Scrivano |
Subject: |
[myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9_2-71-g4f041fc |
Date: |
Mon, 15 Mar 2010 19:42:41 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".
The branch, master has been updated
via 4f041fcb2253ffa1da86de24d5c832a9f48c2394 (commit)
from 80f9b82ddb239eae82dced5882892e1fcc70792c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4f041fcb2253ffa1da86de24d5c832a9f48c2394
Author: Giuseppe Scrivano <address@hidden>
Date: Mon Mar 15 20:42:56 2010 +0100
Move class `HttpInternalException' definition in a separate file.
diff --git a/myserver/include/protocol/http/Makefile.am
b/myserver/include/protocol/http/Makefile.am
index 18e4efb..d716710 100644
--- a/myserver/include/protocol/http/Makefile.am
+++ b/myserver/include/protocol/http/Makefile.am
@@ -15,6 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
httpincludedir=$(includedir)/myserver/include/protocol/http
-httpinclude_HEADERS = dyn_http_command.h dyn_http_command_manager.h
dyn_http_manager.h dyn_http_manager_list.h http_data_handler.h http_data_read.h
http_errors.h http.h http_header.h http_headers.h http_request.h
http_req_security_domain.h http_response.h http_thread_context.h
+httpinclude_HEADERS = dyn_http_command.h dyn_http_command_manager.h \
+ dyn_http_manager.h dyn_http_manager_list.h http_data_handler.h \
+ http_data_read.h http_errors.h http.h http_header.h http_headers.h \
+ http_internal_exception.h http_request.h http_req_security_domain.h
\
+ http_response.h http_thread_context.h
SUBDIRS = env
diff --git a/myserver/include/protocol/http/http_internal_exception.h
b/myserver/include/protocol/http/http_internal_exception.h
new file mode 100644
index 0000000..8d01488
--- /dev/null
+++ b/myserver/include/protocol/http/http_internal_exception.h
@@ -0,0 +1,44 @@
+/* -*- mode: c++ -*- */
+/*
+ MyServer
+ Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ Free Software Foundation, Inc.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#ifndef HTTP_INTERNAL_EXCEPTION_H
+# define HTTP_INTERNAL_EXCEPTION_H
+
+# include <exception>
+
+using namespace std;
+
+class HttpInternalException : public exception
+{
+public:
+ virtual const char *what () const throw ()
+ {
+ return message;
+ }
+
+ HttpInternalException (string & str)
+ {
+ this->message = str.c_str ();
+ }
+
+private:
+ const char *message;
+};
+
+#endif
diff --git a/myserver/src/protocol/http/http.cpp
b/myserver/src/protocol/http/http.cpp
index f58896c..51f3af0 100644
--- a/myserver/src/protocol/http/http.cpp
+++ b/myserver/src/protocol/http/http.cpp
@@ -20,6 +20,7 @@
#include <include/protocol/http/http.h>
#include <include/protocol/http/http_headers.h>
+#include <include/protocol/http/http_internal_exception.h>
#include <include/protocol/http/http_req_security_domain.h>
#include <include/server/server.h>
#include <include/conf/security/security_manager.h>
@@ -63,25 +64,6 @@ extern "C"
#endif
}
-/*FIXME: Move somewhere else. */
-class HttpInternalException : public exception
-{
-public:
- virtual const char *what () const throw ()
- {
- return message;
- }
-
- HttpInternalException (string & str)
- {
- this->message = str.c_str ();
- }
-
-private:
- const char *message;
-};
-
-
int HttpProtocol::loadProtocol ()
{
const char *data = NULL;
-----------------------------------------------------------------------
Summary of changes:
myserver/include/protocol/http/Makefile.am | 6 ++-
.../protocol/http/http_internal_exception.h} | 51 ++++++++-----------
myserver/src/protocol/http/http.cpp | 20 +-------
3 files changed, 28 insertions(+), 49 deletions(-)
copy myserver/{src/conf/security/security_domain.cpp =>
include/protocol/http/http_internal_exception.h} (62%)
hooks/post-receive
--
GNU MyServer
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [myserver-commit] [SCM] GNU MyServer branch, master, updated. 0_9_2-71-g4f041fc,
Giuseppe Scrivano <=