Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / drivers / IProtocolMessages.java @ 15558

History | View | Annotate | Download (3.22 KB)

1

    
2
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
3
*
4
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
5
*
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
19
*
20
* For more information, contact:
21
*
22
*  Generalitat Valenciana
23
*   Conselleria d'Infraestructures i Transport
24
*   Av. Blasco Ib??ez, 50
25
*   46010 VALENCIA
26
*   SPAIN
27
*
28
*      +34 963862235
29
*   gvsig@gva.es
30
*      www.gvsig.gva.es
31
*
32
*    or
33
*
34
*   IVER T.I. S.A
35
*   Salamanca 50
36
*   46005 Valencia
37
*   Spain
38
*
39
*   +34 963163400
40
*   dac@iver.es
41
*/
42
package es.gva.cit.catalog.drivers;
43
import org.apache.commons.httpclient.NameValuePair;
44

    
45
import es.gva.cit.catalog.querys.CatalogQuery;
46
/**
47
 * This interface has one method for each operation and for each
48
 * communication protocol. Each method returns the protocol
49
 * message.
50
 * 
51
 * 
52
 * @author Jorge Piera Llodra (piera_jor@gva.es)
53
 */
54
public interface IProtocolMessages {
55
/**
56
 * operation : getCapabilities
57
 * protocol : HTTP GET
58
 * 
59
 * 
60
 * @return NameValuePair with the request parameters
61
 * @param upper If the 'G' of the getCapabilities must be written in uppercase
62
 */
63
    public NameValuePair[] getHTTPGETCapabilities(boolean upper);
64
/**
65
 * operation : describeRecords
66
 * protocol : HTTP GET
67
 * 
68
 * 
69
 * @return NameValuePair with the request parameters
70
 */
71
    public NameValuePair[] getHTTPGETDescribeRecords();
72
/**
73
 * operation : getRecords
74
 * protocol : HTTP GET
75
 * 
76
 * 
77
 * @return NameValuePair with the request parameters
78
 * @param query 
79
 * @param firstRecord 
80
 */
81
    public NameValuePair[] getHTTPGETRecords(CatalogQuery query, int firstRecord);
82
/**
83
 * operation : getCapabilities
84
 * protocol : HTTP POST
85
 * 
86
 * 
87
 * @return String with the POST message
88
 */
89
    public String getHTTPPOSTCapabilities();
90
/**
91
 * operation : describeRecords
92
 * protocol : HTTP POST
93
 * 
94
 * 
95
 * @return String with the POST message
96
 */
97
    public String getHTTPPOSTDescribeRecords();
98
/**
99
 * operation : getRecords
100
 * protocol : HTTP POST
101
 * 
102
 * 
103
 * @return String with the POST message
104
 * @param query 
105
 * @param firstRecord 
106
 */
107
    public String getHTTPPOSTRecords(CatalogQuery query, int firstRecord);
108
/**
109
 * operation : getCapabilities
110
 * protocol : SOAP
111
 * 
112
 * 
113
 * @return String with the SOAP message
114
 */
115
    public String getSOAPCapabilities();
116
/**
117
 * operation : describeRecords
118
 * protocol : SOAP
119
 * 
120
 * 
121
 * @return String with the SOAP message
122
 */
123
    public String getSOAPDescribeRecords();
124
/**
125
 * operation : getRecords
126
 * protocol : SOAP
127
 * 
128
 * 
129
 * @return String with the SOAP message
130
 * @param query 
131
 * @param firstRecord 
132
 */
133
    public String getSOAPRecords(CatalogQuery query, int firstRecord);
134
}
135

    
136