Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | Private Member Functions | Friends | List of all members
Request Class Reference

HTTP requests handler. More...

#include <Request.h>

Collaboration diagram for Request:
Collaboration graph

Public Member Functions

DataSource * getTileParam (ServicesConf &servicesConf, std::map< std::string, TileMatrixSet * > &tmsList, std::map< std::string, Layer * > &layerList, Layer *&layer, std::string &tileMatrix, int &tileCol, int &tileRow, std::string &format, Style *&style, bool &noDataError)
 Fetching and validating GetTile request parameters.
DataStream * getMapParam (ServicesConf &servicesConf, std::map< std::string, Layer * > &layerList, std::vector< Layer * > &layers, BoundingBox< double > &bbox, int &width, int &height, CRS &crs, std::string &format, std::vector< Style * > &styles, std::map< std::string, std::string > &format_option)
 Fetching and validating GetTile request parameters.
DataStream * getCapWMSParam (ServicesConf &servicesConf, std::string &version)
 Fetching and validating GetTile request parameters.
DataStream * getCapWMTSParam (ServicesConf &servicesConf, std::string &version)
 Fetching and validating GetTile request parameters.
 Request (char *strquery, char *hostName, char *path, char *https)
 Get Request Constructor.
 Request (char *strquery, char *hostName, char *path, char *https, std::string postContent)
 POST Request Constructor.
virtual ~Request ()
 Default destructor.

Public Attributes

std::string hostName
 Request domain name.
std::string path
 Web Server path of the service.
std::string service
 Service type (WMS,WMTS)
std::string request
 OGC request name.
std::string scheme
 Request protocol (http,https)
std::map< std::string,
std::string > 
params
 Request parameters list.

Private Member Functions

void url_decode (char *src)
 URL decoding.
bool hasParam (std::string paramName)
 Test if the request contain a specific parameter.
std::string getParam (std::string paramName)
 Fetch a specific parameter value in the request.

Friends

class CppUnitRequest

Detailed Description

HTTP requests handler.

Author
Institut national de l'information géographique et forestière

HTTP request decoder class. It support the following request type

Constructor & Destructor Documentation

Request::Request ( char *  strquery,
char *  hostName,
char *  path,
char *  https 
)

Get Request Constructor.

Parameters
strqueryhttp query arguments
hostNamehostname declared in the request
pathwebserver path to the ROK4 Server
httpshttps request if defined

Here is the call graph for this function:

Request::Request ( char *  strquery,
char *  hostName,
char *  path,
char *  https,
std::string  postContent 
)

POST Request Constructor.

Parameters
strqueryhttp query arguments
hostNamehostname declared in the request
pathwebserver path to the ROK4 Server
httpshttps request if defined
postContentthe http POST Content

Here is the call graph for this function:

Member Function Documentation

DataStream * Request::getCapWMSParam ( ServicesConf servicesConf,
std::string &  version 
)

Fetching and validating GetTile request parameters.

Returns
NULL or an error message if something went wrong

Here is the call graph for this function:

Here is the caller graph for this function:

DataStream * Request::getCapWMTSParam ( ServicesConf servicesConf,
std::string &  version 
)

Fetching and validating GetTile request parameters.

Returns
NULL or an error message if something went wrong

Here is the call graph for this function:

Here is the caller graph for this function:

DataStream * Request::getMapParam ( ServicesConf servicesConf,
std::map< std::string, Layer * > &  layerList,
std::vector< Layer * > &  layers,
BoundingBox< double > &  bbox,
int &  width,
int &  height,
CRS &  crs,
std::string &  format,
std::vector< Style * > &  styles,
std::map< std::string, std::string > &  format_option 
)

Fetching and validating GetTile request parameters.

Returns
NULL or an error message if something went wrong

Here is the call graph for this function:

Here is the caller graph for this function:

std::string Request::getParam ( std::string  paramName)
private

Fetch a specific parameter value in the request.

Parameters
[in]paramNameparameter name
Returns
parameter value or "" if not availlable

Here is the caller graph for this function:

DataSource * Request::getTileParam ( ServicesConf servicesConf,
std::map< std::string, TileMatrixSet * > &  tmsList,
std::map< std::string, Layer * > &  layerList,
Layer *&  layer,
std::string &  tileMatrix,
int &  tileCol,
int &  tileRow,
std::string &  format,
Style *&  style,
bool &  noDataError 
)

Fetching and validating GetTile request parameters.

Returns
NULL or an error message if something went wrong

Here is the call graph for this function:

Here is the caller graph for this function:

bool Request::hasParam ( std::string  paramName)
private

Test if the request contain a specific parameter.

Parameters
[in]paramNameparameter to test
Returns
true if present

Here is the caller graph for this function:

void Request::url_decode ( char *  src)
private

URL decoding.

Parameters
[in,out]srcURLs

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: