Remove dynamic exceptions
[anna.git] / example / timex / ArithmeticHTTPServer / Acceptor.hpp
1 // ANNA - Anna is Not Nothingness Anymore                                                         //
2 //                                                                                                //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo                         //
4 //                                                                                                //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite                           //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
7
8
9 #ifndef timex_ArithmeticHTTPServer_Acceptor_hpp
10 #define timex_ArithmeticHTTPServer_Acceptor_hpp
11
12 #include <anna/http/Handler.hpp>
13
14 #include "Request.hpp"
15 #include "Response.hpp"
16
17 namespace anna {
18    namespace comm {
19       class Communicator;
20       class IndexedDelivery;
21    }
22 }
23
24 namespace test {
25
26 namespace http4comm {
27
28 using namespace anna;
29
30 class Acceptor : public http::Handler {
31 public:
32    Acceptor () : http::Handler ("http4comm::Acceptor") {;}
33
34    static const char* className () { return "http4comm::Acceptor"; }
35
36 private:
37    Request a_testRequest;
38    Response a_testResponse;
39
40    void initialize () noexcept(false);
41    void evRequest (comm::ClientSocket&, const http::Request& request) noexcept(false);
42    void evResponse (comm::ClientSocket&, const http::Response&) noexcept(false) {;}
43 };
44
45 }
46 }
47
48 #endif