ResponseSender.h
Aller à la documentation de ce fichier.
1 /*
2  * Copyright © (2011-2013) Institut national de l'information
3  * géographique et forestière
4  *
5  * Géoportail SAV <contact.geoservices@ign.fr>
6  *
7  * This software is a computer program whose purpose is to publish geographic
8  * data using OGC WMS and WMTS protocol.
9  *
10  * This software is governed by the CeCILL-C license under French law and
11  * abiding by the rules of distribution of free software. You can use,
12  * modify and/ or redistribute the software under the terms of the CeCILL-C
13  * license as circulated by CEA, CNRS and INRIA at the following URL
14  * "http://www.cecill.info".
15  *
16  * As a counterpart to the access to the source code and rights to copy,
17  * modify and redistribute granted by the license, users are provided only
18  * with a limited warranty and the software's author, the holder of the
19  * economic rights, and the successive licensors have only limited
20  * liability.
21  *
22  * In this respect, the user's attention is drawn to the risks associated
23  * with loading, using, modifying and/or developing or reproducing the
24  * software by the user in light of its specific status of free software,
25  * that may mean that it is complicated to manipulate, and that also
26  * therefore means that it is reserved for developers and experienced
27  * professionals having in-depth computer knowledge. Users are therefore
28  * encouraged to load and test the software's suitability as regards their
29  * requirements in conditions enabling the security of their systems and/or
30  * data to be ensured and, more generally, to use and operate it in the
31  * same conditions as regards security.
32  *
33  * The fact that you are presently reading this means that you have had
34  *
35  * knowledge of the CeCILL-C license and that you accept its terms.
36  */
37 
46 #ifndef _SENDER_
47 #define _SENDER_
48 
49 #include <rok4/datastream/DataStream.h>
50 #include <rok4/datasource/DataSource.h>
51 #include "Request.h"
52 #include "fcgiapp.h"
53 
62 public:
71  static int sendresponse ( DataSource* response, FCGX_Request* fcgx_request, Request* request );
80  static int sendresponse ( DataStream* response, FCGX_Request* fcgx_request, Request* request );
81 };
82 
83 
84 #endif
85 
ResponseSender
Gestions de l'envoie des réponses dans le flux FCGI.
Definition: ResponseSender.h:61
Request.h
Définition de la classe Request, analysant les requêtes HTTP.
Request
Gestion des requêtes HTTP.
Definition: Request.h:176
ResponseSender::sendresponse
static int sendresponse(DataSource *response, FCGX_Request *fcgx_request, Request *request)
Copie d'une source de données dans le flux de sortie de l'objet request de type FCGX_Request.
Definition: ResponseSender.cpp:138