root / tags / v1_0_2_Build_912 / libraries / libRemoteServices / src / org / gvsig / remoteClient / wfs / WFSStatus.java @ 11422
History | View | Annotate | Download (4.9 KB)
1 | 4887 | jorpiell | package org.gvsig.remoteClient.wfs; |
---|---|---|---|
2 | |||
3 | 5368 | jorpiell | import java.awt.geom.Rectangle2D; |
4 | import java.net.URL; |
||
5 | |||
6 | 4887 | jorpiell | 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$
|
||
51 | * $Log$
|
||
52 | 9229 | ppiqueras | * Revision 1.3.2.3 2006-12-11 09:54:56 ppiqueras
|
53 | * Solucionados 1 bug relacionado con el filtrado WFS
|
||
54 | 8765 | jjdelcerro | *
|
55 | * Revision 1.4 2006/10/10 12:52:28 jorpiell
|
||
56 | * Soporte para features complejas.
|
||
57 | *
|
||
58 | * Revision 1.3 2006/06/14 07:54:18 jorpiell
|
||
59 | 5821 | jorpiell | * Se parsea el online resource que antes se ignoraba
|
60 | *
|
||
61 | * Revision 1.2 2006/05/23 13:23:13 jorpiell
|
||
62 | 5368 | jorpiell | * Se ha cambiado el final del bucle de parseado y se tiene en cuenta el online resource
|
63 | *
|
||
64 | * Revision 1.1 2006/04/19 12:51:35 jorpiell
|
||
65 | 4887 | jorpiell | * A?adidas algunas de las clases del servicio WFS
|
66 | *
|
||
67 | *
|
||
68 | */
|
||
69 | /**
|
||
70 | * @author Jorge Piera Llodr? (piera_jor@gva.es)
|
||
71 | */
|
||
72 | public class WFSStatus extends RemoteClientStatus{ |
||
73 | 5368 | jorpiell | private String featureName = null; |
74 | private String[] fields = null; |
||
75 | private String userName = null; |
||
76 | private String password = null; |
||
77 | private String onlineResource = null; |
||
78 | private Rectangle2D bBox = null; |
||
79 | private int timeout = 10000; |
||
80 | 8765 | jjdelcerro | private int buffer = 100; |
81 | private String filterQuery = null; |
||
82 | 9229 | ppiqueras | private String filterVisualText = null; |
83 | 4887 | jorpiell | |
84 | 5368 | jorpiell | public WFSStatus(String featureName){ |
85 | this.featureName = featureName;
|
||
86 | } |
||
87 | 4887 | jorpiell | |
88 | 5368 | jorpiell | /**
|
89 | * @return Returns the bBox.
|
||
90 | */
|
||
91 | public Rectangle2D getBBox() { |
||
92 | return bBox;
|
||
93 | } |
||
94 | |||
95 | |||
96 | /**
|
||
97 | * @param box The bBox to set.
|
||
98 | */
|
||
99 | public void setBBox(Rectangle2D box) { |
||
100 | bBox = box; |
||
101 | } |
||
102 | |||
103 | |||
104 | /**
|
||
105 | * @return Returns the buffer.
|
||
106 | */
|
||
107 | public int getBuffer() { |
||
108 | return buffer;
|
||
109 | } |
||
110 | |||
111 | |||
112 | /**
|
||
113 | * @param buffer The buffer to set.
|
||
114 | */
|
||
115 | public void setBuffer(int buffer) { |
||
116 | this.buffer = buffer;
|
||
117 | } |
||
118 | |||
119 | |||
120 | /**
|
||
121 | * @return Returns the featureName.
|
||
122 | */
|
||
123 | public String getFeatureName() { |
||
124 | return featureName;
|
||
125 | } |
||
126 | |||
127 | |||
128 | /**
|
||
129 | * @param featureName The featureName to set.
|
||
130 | */
|
||
131 | public void setFeatureName(String featureName) { |
||
132 | this.featureName = featureName;
|
||
133 | } |
||
134 | |||
135 | |||
136 | /**
|
||
137 | * @return Returns the fields.
|
||
138 | */
|
||
139 | public String[] getFields() { |
||
140 | return fields;
|
||
141 | } |
||
142 | |||
143 | |||
144 | /**
|
||
145 | * @param fields The fields to set.
|
||
146 | */
|
||
147 | public void setFields(String[] fields) { |
||
148 | this.fields = fields;
|
||
149 | } |
||
150 | |||
151 | |||
152 | /**
|
||
153 | * @return Returns the password.
|
||
154 | */
|
||
155 | public String getPassword() { |
||
156 | return password;
|
||
157 | } |
||
158 | |||
159 | |||
160 | /**
|
||
161 | * @param password The password to set.
|
||
162 | */
|
||
163 | public void setPassword(String password) { |
||
164 | this.password = password;
|
||
165 | } |
||
166 | |||
167 | |||
168 | /**
|
||
169 | * @return Returns the timeout.
|
||
170 | */
|
||
171 | public int getTimeout() { |
||
172 | return timeout;
|
||
173 | } |
||
174 | |||
175 | |||
176 | /**
|
||
177 | * @param timeout The timeout to set.
|
||
178 | */
|
||
179 | public void setTimeout(int timeout) { |
||
180 | this.timeout = timeout;
|
||
181 | } |
||
182 | |||
183 | |||
184 | /**
|
||
185 | * @return Returns the userName.
|
||
186 | */
|
||
187 | public String getUserName() { |
||
188 | return userName;
|
||
189 | } |
||
190 | |||
191 | |||
192 | /**
|
||
193 | * @param userName The userName to set.
|
||
194 | */
|
||
195 | public void setUserName(String userName) { |
||
196 | this.userName = userName;
|
||
197 | } |
||
198 | 8765 | jjdelcerro | |
199 | public String getNameSpace(){ |
||
200 | if (featureName.split(":").length > 1){ |
||
201 | return featureName.split(":")[0]; |
||
202 | } |
||
203 | return null; |
||
204 | } |
||
205 | 5368 | jorpiell | |
206 | |||
207 | 4887 | jorpiell | public String getOnlineResource() { |
208 | return onlineResource;
|
||
209 | } |
||
210 | |||
211 | |||
212 | public void setOnlineResource(String url) { |
||
213 | onlineResource = url; |
||
214 | } |
||
215 | 8765 | jjdelcerro | |
216 | /**
|
||
217 | * @return Returns the filterQuery.
|
||
218 | */
|
||
219 | public String getFilterQuery() { |
||
220 | return filterQuery;
|
||
221 | } |
||
222 | |||
223 | /**
|
||
224 | * @param filterQuery The filterQuery to set.
|
||
225 | */
|
||
226 | public void setFilterQuery(String filterQuery) { |
||
227 | this.filterQuery = filterQuery;
|
||
228 | } |
||
229 | 9229 | ppiqueras | |
230 | /**
|
||
231 | * Returns the text of filtering that user sees in interface
|
||
232 | *
|
||
233 | * @return An String (in WFS-Visual-Filter-Query format)
|
||
234 | */
|
||
235 | public String getFilterVisualText() { |
||
236 | return filterVisualText;
|
||
237 | } |
||
238 | |||
239 | /**
|
||
240 | * Sets the text of filtering that user will see in interface.
|
||
241 | *
|
||
242 | * @param filterVisualText An String (that must have a WFS-Visual-Filter-Query format)
|
||
243 | */
|
||
244 | public void setFilterVisualText(String _filterVisualText) { |
||
245 | this.filterVisualText = _filterVisualText;
|
||
246 | } |
||
247 | 5368 | jorpiell | } |