projects
/
gssweb.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
663f799ac6114d178254d1bbb7c5f07dc0a9e039
[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
13
#include "commands/GSSCommand.h"
14
#include "util_json.h"
15
16
using std::string;
17
18
class GSSRequest
19
{
20
public:
21
GSSRequest(string jsonString);
22
~GSSRequest();
23
24
void execute();
25
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