Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.remoteclient / src / main / java / org / gvsig / remoteclient / RemoteClientStatus.java @ 40559

History | View | Annotate | Download (2.87 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24

    
25
package org.gvsig.remoteclient;
26

    
27
import org.gvsig.remoteclient.ogc.OGCClientOperation;
28

    
29
/**
30
 * This class represents the client status at a certain moment
31
 * it describes the "graphic" situation or the requirements of the data
32
 * to be retrieved.
33
 * 
34
 */
35
public abstract class RemoteClientStatus {
36

    
37
        // width and heigh of the map
38
    private int width;
39
    private int height;
40
    
41
    //format of the image to be retrieved
42
    private String format;
43
    private String infoFormat;
44
    // spatial reference system of the image to be retrieved
45
    private String srs;
46
    // exception format, to be retrieved in case of error
47
    private String exceptionFormat;
48
    
49
    //To set if the client has to use GET or POST
50
        private int protocol = OGCClientOperation.PROTOCOL_UNDEFINED;
51

    
52
        public int getWidth() {        
53
        return width;
54
    }
55
    
56
    public void setWidth(int _width) {        
57
            width = _width;
58
    } 
59

    
60
    public int getHeight() {                
61
        return height;
62
    } 
63
    public void setHeight(int _height) {        
64
        height = _height;
65
    } 
66

    
67
    public String getFormat() {        
68
        return format;
69
    }
70
    
71
    public void setFormat(String _format) {        
72
        format = _format;
73
    } 
74
    
75
    public String getInfoFormat() {        
76
        return infoFormat;
77
    } 
78
    
79
    public void setInfoFormat(String _format) {        
80
        infoFormat = _format;
81
    } 
82

    
83
    public String getSrs() {        
84
        return srs;
85
    } 
86

    
87
    public void setSrs(String _srs) {        
88
        srs = _srs;
89
    } 
90

    
91
    public void setExceptionFormat(String _format) {        
92
        exceptionFormat = _format;
93
    } 
94
    
95
    public String getExceptionFormat() {        
96
        return exceptionFormat;
97
    }
98
    
99
    /**
100
         * @return the protocol
101
         */
102
        public int getProtocol() {
103
                return protocol;
104
        }
105

    
106
        /**
107
         * @param protocol the protocol to set
108
         */
109
        public void setProtocol(int protocol) {
110
                this.protocol = protocol;
111
        }
112
 
113
 }