Statistics
| Revision:

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

History | View | Annotate | Download (3.44 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.gazetteer.drivers;
43
import org.apache.commons.httpclient.NameValuePair;
44

    
45
import es.gva.cit.gazetteer.querys.GazetteerQuery;
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 : describeFeature
66
 * protocol : HTTP GET
67
 * 
68
 * @param fetaure Feature to describe
69
 * 
70
 * @return NameValuePair with the request parameters
71
 * @param feature 
72
 */
73
    public NameValuePair[] getHTTPGETDescribeFeature(String feature);
74
/**
75
 * operation : getFeature
76
 * protocol : HTTP GET
77
 * 
78
 * 
79
 * @return NameValuePair with the request parameters
80
 * @param query 
81
 * @param firstRecord 
82
 */
83
    public NameValuePair[] getHTTPGETFeatures(GazetteerQuery query, int firstRecord);
84
/**
85
 * operation : getCapabilities
86
 * protocol : HTTP POST
87
 * 
88
 * 
89
 * @return String with the POST message
90
 */
91
    public String getHTTPPOSTCapabilities();
92
/**
93
 * operation : describeFeature
94
 * protocol : HTTP POST
95
 * 
96
 * @param fetaure Feature to describe
97
 * 
98
 * @return String with the POST message
99
 * @param feature 
100
 */
101
    public String getHTTPPOSTDescribeFeature(String feature);
102
/**
103
 * operation : getFeature
104
 * protocol : HTTP POST
105
 * 
106
 * 
107
 * @return String with the POST message
108
 * @param query 
109
 * @param firstRecord 
110
 */
111
    public String getHTTPPOSTFeature(GazetteerQuery query, int firstRecord);
112
/**
113
 * operation : getCapabilities
114
 * protocol : SOAP
115
 * 
116
 * 
117
 * @return String with the SOAP message
118
 */
119
    public String getSOAPCapabilities();
120
/**
121
 * operation : describeFeature
122
 * protocol : SOAP
123
 * 
124
 * @param fetaure Feature to describe
125
 * 
126
 * @return String with the SOAP message
127
 * @param feature 
128
 */
129
    public String getSOAPDescribeFeature(String feature);
130
/**
131
 * operation : getFeature
132
 * protocol : SOAP
133
 * 
134
 * 
135
 * @return String with the SOAP message
136
 * @param query 
137
 * @param firstRecord 
138
 */
139
    public String getSOAPFeature(GazetteerQuery query, int firstRecord);
140
}
141

    
142