-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Marco Hugentobler
committed
Jun 18, 2011
1 parent
783b30e
commit 2a05b54
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include "qgspostrequesthandler.h" | ||
#include "qgslogger.h" | ||
|
||
QgsPostRequestHandler::QgsPostRequestHandler() | ||
{ | ||
} | ||
|
||
QgsPostRequestHandler::~QgsPostRequestHandler() | ||
{ | ||
} | ||
|
||
std::map<QString, QString> QgsPostRequestHandler::parseInput() | ||
{ | ||
QgsDebugMsg("QgsPostRequestHandler::parseInput"); | ||
std::map<QString, QString> parameters; | ||
QString inputString = readPostBody(); | ||
QgsDebugMsg(inputString); | ||
requestStringToParameterMap( inputString, parameters ); | ||
return parameters; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#ifndef QGSPOSTREQUESTHANDLER_H | ||
#define QGSPOSTREQUESTHANDLER_H | ||
|
||
#include "qgshttprequesthandler.h" | ||
|
||
/**Request handler for HTTP POST*/ | ||
class QgsPostRequestHandler: public QgsHttpRequestHandler | ||
{ | ||
public: | ||
QgsPostRequestHandler(); | ||
~QgsPostRequestHandler(); | ||
|
||
/**Parses the input and creates a request neutral Parameter/Value map*/ | ||
std::map<QString, QString> parseInput(); | ||
}; | ||
|
||
#endif // QGSPOSTREQUESTHANDLER_H |