Support for windows builds
[gssweb.git] / json_gssapi / src / GSSRequest.h
1 /*
2  * Copyright (c) 2014 <copyright holder> <email>
3  *
4  * For license details, see the LICENSE file in the root of this project.
5  *
6  */
7
8 #ifndef GSSREQUEST_H
9 #define GSSREQUEST_H
10
11 #include <string>
12 #include "jsongssapi_export.h"
13 #include "commands/GSSCommand.h"
14 #include "util_json.h"
15
16 using std::string;
17
18 class GSSRequest
19 {
20 public:
21   JSONGSSAPI_EXPORT GSSRequest(string jsonString);
22   JSONGSSAPI_EXPORT ~GSSRequest();
23   
24   JSONGSSAPI_EXPORT void execute();
25   JSONGSSAPI_EXPORT string getResponse();
26   
27 private:
28   string      requestString;
29   JSONObject  request;
30   JSONObject  response;
31   GSSCommand *cmd;
32   
33   void getCommand();
34   void parseJSON();
35 };
36
37 #endif // GSSREQUEST_H