29 #ifndef Pt_Soap_HttpResponder_h
30 #define Pt_Soap_HttpResponder_h
32 #include <Pt/Soap/Api.h>
33 #include <Pt/Soap/Responder.h>
34 #include <Pt/Remoting/ServiceDefinition.h>
35 #include <Pt/Http/Responder.h>
36 #include <Pt/System/EventLoop.h>
44 class ServiceDeclaration;
46 class PT_SOAP_API HttpResponder :
public Http::Responder
50 HttpResponder(HttpService& httpService,
const ServiceDeclaration& decl, Remoting::ServiceDefinition& def);
54 Http::Request* request()
62 void onBeginRequest(Http::Request& request, Http::Reply& reply, System::EventLoop& loop);
65 void onReadRequest(Http::Request& request, Http::Reply& reply, System::EventLoop& loop);
68 void onBeginReply(
const Http::Request& request, Http::Reply& reply, System::EventLoop& loop);
71 void onWriteReply(
const Http::Request& request, Http::Reply& reply, System::EventLoop& loop);
75 virtual void onResult();
78 virtual void onFault(
const Fault& fault);
81 virtual void onCancel();
83 void advanceReply(Http::Reply& reply);
86 Http::Request* _request;
94 #endif // Pt_Soap_HttpResponder_h