Statistics
| Revision:

root / trunk / libraries / libRemoteServices / src / org / gvsig / remoteClient / wfs / WFSStatus.java @ 8017

History | View | Annotate | Download (4.28 KB)

1
package org.gvsig.remoteClient.wfs;
2

    
3
import java.awt.geom.Rectangle2D;
4
import java.net.URL;
5

    
6
import org.gvsig.remoteClient.RemoteClientStatus;
7

    
8
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
9
 *
10
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
11
 *
12
 * This program is free software; you can redistribute it and/or
13
 * modify it under the terms of the GNU General Public License
14
 * as published by the Free Software Foundation; either version 2
15
 * of the License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
25
 *
26
 * For more information, contact:
27
 *
28
 *  Generalitat Valenciana
29
 *   Conselleria d'Infraestructures i Transport
30
 *   Av. Blasco Ib??ez, 50
31
 *   46010 VALENCIA
32
 *   SPAIN
33
 *
34
 *      +34 963862235
35
 *   gvsig@gva.es
36
 *      www.gvsig.gva.es
37
 *
38
 *    or
39
 *
40
 *   IVER T.I. S.A
41
 *   Salamanca 50
42
 *   46005 Valencia
43
 *   Spain
44
 *
45
 *   +34 963163400
46
 *   dac@iver.es
47
 */
48
/* CVS MESSAGES:
49
 *
50
 * $Id: WFSStatus.java 8017 2006-10-10 12:52:28Z jorpiell $
51
 * $Log$
52
 * Revision 1.4  2006-10-10 12:52:28  jorpiell
53
 * Soporte para features complejas.
54
 *
55
 * Revision 1.3  2006/06/14 07:54:18  jorpiell
56
 * Se parsea el online resource que antes se ignoraba
57
 *
58
 * Revision 1.2  2006/05/23 13:23:13  jorpiell
59
 * Se ha cambiado el final del bucle de parseado y se tiene en cuenta el online resource
60
 *
61
 * Revision 1.1  2006/04/19 12:51:35  jorpiell
62
 * A?adidas algunas de las clases del servicio WFS
63
 *
64
 *
65
 */
66
/**
67
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
68
 */
69
public class WFSStatus extends RemoteClientStatus{
70
        private String featureName = null;
71
        private String[] fields = null;
72
        private String userName = null;
73
        private String password = null;
74
        private String onlineResource = null;
75
        private Rectangle2D        bBox = null;
76
        private int timeout = 10000;
77
        private int buffer = 100;        
78
        private String filterQuery = null;
79
        
80
        public WFSStatus(String featureName){
81
                this.featureName = featureName;
82
        }
83

    
84
        /**
85
         * @return Returns the bBox.
86
         */
87
        public Rectangle2D getBBox() {
88
                return bBox;
89
        }
90

    
91

    
92
        /**
93
         * @param box The bBox to set.
94
         */
95
        public void setBBox(Rectangle2D box) {
96
                bBox = box;
97
        }
98

    
99

    
100
        /**
101
         * @return Returns the buffer.
102
         */
103
        public int getBuffer() {
104
                return buffer;
105
        }
106

    
107

    
108
        /**
109
         * @param buffer The buffer to set.
110
         */
111
        public void setBuffer(int buffer) {
112
                this.buffer = buffer;
113
        }
114

    
115

    
116
        /**
117
         * @return Returns the featureName.
118
         */
119
        public String getFeatureName() {
120
                return featureName;
121
        }
122

    
123

    
124
        /**
125
         * @param featureName The featureName to set.
126
         */
127
        public void setFeatureName(String featureName) {
128
                this.featureName = featureName;
129
        }
130

    
131

    
132
        /**
133
         * @return Returns the fields.
134
         */
135
        public String[] getFields() {
136
                return fields;
137
        }
138

    
139

    
140
        /**
141
         * @param fields The fields to set.
142
         */
143
        public void setFields(String[] fields) {
144
                this.fields = fields;
145
        }
146

    
147

    
148
        /**
149
         * @return Returns the password.
150
         */
151
        public String getPassword() {
152
                return password;
153
        }
154

    
155

    
156
        /**
157
         * @param password The password to set.
158
         */
159
        public void setPassword(String password) {
160
                this.password = password;
161
        }
162

    
163

    
164
        /**
165
         * @return Returns the timeout.
166
         */
167
        public int getTimeout() {
168
                return timeout;
169
        }
170

    
171

    
172
        /**
173
         * @param timeout The timeout to set.
174
         */
175
        public void setTimeout(int timeout) {
176
                this.timeout = timeout;
177
        }
178

    
179

    
180
        /**
181
         * @return Returns the userName.
182
         */
183
        public String getUserName() {
184
                return userName;
185
        }
186

    
187

    
188
        /**
189
         * @param userName The userName to set.
190
         */
191
        public void setUserName(String userName) {
192
                this.userName = userName;
193
        }
194
        
195
        public String getNameSpace(){
196
                if (featureName.split(":").length > 1){
197
                        return featureName.split(":")[0];
198
                }
199
                return null;
200
        }
201

    
202

    
203
        public String getOnlineResource() {
204
                return onlineResource;
205
        }
206
        
207

    
208
        public void setOnlineResource(String url) {
209
                onlineResource = url;
210
        }
211

    
212
        /**
213
         * @return Returns the filterQuery.
214
         */
215
        public String getFilterQuery() {
216
                return filterQuery;
217
        }
218

    
219
        /**
220
         * @param filterQuery The filterQuery to set.
221
         */
222
        public void setFilterQuery(String filterQuery) {
223
                this.filterQuery = filterQuery;
224
        }
225
}