Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libRemoteServices / src / org / gvsig / remoteclient / wfs / wfs_1_1_0 / request / WFSGetFeatureRequest1_1_0.java @ 34026

History | View | Annotate | Download (2.65 KB)

1
package org.gvsig.remoteclient.wfs.wfs_1_1_0.request;
2

    
3
import org.gvsig.remoteclient.wfs.WFSProtocolHandler;
4
import org.gvsig.remoteclient.wfs.WFSStatus;
5
import org.gvsig.remoteclient.wfs.wfs_1_0_0.request.WFSGetFeatureRequest1_0_0;
6

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

    
58
        public WFSGetFeatureRequest1_1_0(WFSStatus status,
59
                        WFSProtocolHandler protocolHandler) {
60
                super(status, protocolHandler);                
61
        }
62
        
63
        /*
64
         * (non-Javadoc)
65
         * @see org.gvsig.remoteClient.wfs.requests.WFSRequest#getHttpGetRequest(java.lang.String)
66
         */
67
        protected String getHttpGetRequest(String onlineResource) {
68
                StringBuffer req = new StringBuffer();
69
                        req.append(super.getHttpGetRequest(onlineResource));
70
                //Typename
71
                String typeName = status.getFeatureName();
72
                if ((status.getNamespaceLocation() != null) && 
73
                                (status.getNamespacePrefix() != null)){
74
                        req.append("&");        
75
                        req.append("NAMESPACE=");
76
                        req.append("xmlns(" + status.getNamespacePrefix() + "=");
77
                        req.append(status.getNamespaceLocation() + ")");                                                
78
                }        
79
                if (status.getResultType() == WFSStatus.RESULTYPE_HITS){
80
                    req.append("&RESULTTYPE=hits");      
81
                }
82
                return req.toString();
83
        }
84

    
85
        /* (non-Javadoc)
86
         * @see org.gvsig.remoteClient.wfs.wfs_1_0_0.requests.WFSGetFeatureRequest1_0_0#addPropertyName(java.lang.StringBuffer)
87
         */        
88
        protected void addPropertyName(StringBuffer req) {
89
                
90
        }
91
        
92
        
93

    
94
}