Revision 38255

View differences:

branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wms/request/WMSGetLegendGraphicRequest.java
64 64
	 * @see org.gvsig.remoteClient.wfs.requests.WFSRequest#getTempFilePrefix()
65 65
	 */
66 66
	protected String getTempFilePrefix() {
67
		String format = status.getFormat();
68
		if (format == null){
69
			return "wms_getLegendGraphic.xml";
70
		}
71
		if (format.indexOf("png") >= 0){
72
	        return "wms_getLegendGraphic.png";
73
		}	
74
	    if (format.indexOf("xml") >= 0){
75
	        return "wms_getLegendGraphic.xml";
76
	    }	
77
	    if (format.indexOf("gif") >= 0){
78
	        return "wms_getLegendGraphic.gif";
79
	    }
80
	    if (format.indexOf("tif") >= 0){
81
	        return "wms_getLegendGraphic.tif";
82
	    }
83
	    if (format.indexOf("bmp") >= 0){
84
	        return "wms_getLegendGraphic.bmp";
85
	    }
86
	    if (format.indexOf("jpg") >= 0
87
	        || format.indexOf("jpeg") >= 0){
88
	        return "wms_getLegendGraphic.jpg";			 
89
	    }
67 90
		return "wms_getLegendGraphic.xml";
68 91
	}
69 92
}

Also available in: Unified diff