root / branches / v2_0_0_prep / libraries / libRemoteServices / src / org / gvsig / remoteclient / RemoteClientStatus.java @ 38579
History | View | Annotate | Download (1.93 KB)
1 |
|
---|---|
2 |
package org.gvsig.remoteclient; |
3 |
|
4 |
import org.gvsig.remoteclient.ogc.OGCClientOperation; |
5 |
|
6 |
/**
|
7 |
* This class represents the client status at a certain moment
|
8 |
* it describes the "graphic" situation or the requirements of the data
|
9 |
* to be retrieved.
|
10 |
*
|
11 |
*/
|
12 |
public abstract class RemoteClientStatus { |
13 |
|
14 |
// width and heigh of the map
|
15 |
private int width; |
16 |
private int height; |
17 |
|
18 |
//format of the image to be retrieved
|
19 |
private String format; |
20 |
private String infoFormat; |
21 |
// spatial reference system of the image to be retrieved
|
22 |
private String srs; |
23 |
// exception format, to be retrieved in case of error
|
24 |
private String exceptionFormat; |
25 |
|
26 |
//To set if the client has to use GET or POST
|
27 |
private int protocol = OGCClientOperation.PROTOCOL_UNDEFINED; |
28 |
|
29 |
public int getWidth() { |
30 |
return width;
|
31 |
} |
32 |
|
33 |
public void setWidth(int _width) { |
34 |
width = _width; |
35 |
} |
36 |
|
37 |
public int getHeight() { |
38 |
return height;
|
39 |
} |
40 |
public void setHeight(int _height) { |
41 |
height = _height; |
42 |
} |
43 |
|
44 |
public String getFormat() { |
45 |
return format;
|
46 |
} |
47 |
|
48 |
public void setFormat(String _format) { |
49 |
format = _format; |
50 |
} |
51 |
|
52 |
public String getInfoFormat() { |
53 |
return infoFormat;
|
54 |
} |
55 |
|
56 |
public void setInfoFormat(String _format) { |
57 |
infoFormat = _format; |
58 |
} |
59 |
|
60 |
public String getSrs() { |
61 |
return srs;
|
62 |
} |
63 |
|
64 |
public void setSrs(String _srs) { |
65 |
srs = _srs; |
66 |
} |
67 |
|
68 |
public void setExceptionFormat(String _format) { |
69 |
exceptionFormat = _format; |
70 |
} |
71 |
|
72 |
public String getExceptionFormat() { |
73 |
return exceptionFormat;
|
74 |
} |
75 |
|
76 |
/**
|
77 |
* @return the protocol
|
78 |
*/
|
79 |
public int getProtocol() { |
80 |
return protocol;
|
81 |
} |
82 |
|
83 |
/**
|
84 |
* @param protocol the protocol to set
|
85 |
*/
|
86 |
public void setProtocol(int protocol) { |
87 |
this.protocol = protocol;
|
88 |
} |
89 |
|
90 |
} |