Revision 41285 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/main/java/org/gvsig/remoteclient/wms/wms_1_1_0/WMSProtocolHandler1_1_0.java
WMSProtocolHandler1_1_0.java | ||
---|---|---|
46 | 46 |
import org.gvsig.remoteclient.wms.wms_1_1_0.request.WMSGetFeatureInfoRequest1_1_0; |
47 | 47 |
import org.gvsig.remoteclient.wms.wms_1_1_0.request.WMSGetLegendGraphicRequest1_1_0; |
48 | 48 |
import org.gvsig.remoteclient.wms.wms_1_1_0.request.WMSGetMapRequest1_1_0; |
49 |
import org.gvsig.remoteclient.wms.wms_1_3_0.WMSProtocolHandler1_3_0; |
|
50 |
import org.slf4j.Logger; |
|
51 |
import org.slf4j.LoggerFactory; |
|
49 | 52 |
|
50 | 53 |
/** |
51 | 54 |
* <p> |
... | ... | |
54 | 57 |
*/ |
55 | 58 |
public class WMSProtocolHandler1_1_0 extends org.gvsig.remoteclient.wms.WMSProtocolHandler |
56 | 59 |
{ |
60 |
|
|
61 |
private static final Logger logger = LoggerFactory.getLogger(WMSProtocolHandler1_1_0.class); |
|
57 | 62 |
private WMSLayer1_1_0 fakeRootLayer; |
58 | 63 |
|
59 | 64 |
public WMSProtocolHandler1_1_0() |
... | ... | |
111 | 116 |
} |
112 | 117 |
} |
113 | 118 |
catch(XmlPullParserException parser_ex){ |
114 |
parser_ex.printStackTrace();
|
|
119 |
logger.warn("Error parsing capabilites.",parser_ex);
|
|
115 | 120 |
return false; |
116 | 121 |
} |
117 | 122 |
catch (IOException ioe) { |
118 |
ioe.printStackTrace();
|
|
123 |
logger.warn("Error parsing capabilites.",ioe);
|
|
119 | 124 |
return false; |
120 | 125 |
} finally { |
121 | 126 |
return true; |
... | ... | |
288 | 293 |
} |
289 | 294 |
} |
290 | 295 |
catch(XmlPullParserException parser_ex){ |
291 |
System.out.println(parser_ex.getMessage()); |
|
292 |
parser_ex.printStackTrace(); |
|
296 |
logger.warn("",parser_ex); |
|
293 | 297 |
} |
294 | 298 |
catch (IOException ioe) { |
295 |
ioe.printStackTrace();
|
|
299 |
logger.warn("",ioe);
|
|
296 | 300 |
} |
297 | 301 |
String message = errors.size()>0? "" : null; |
298 | 302 |
for (int i = 0; i < errors.size(); i++) { |
Also available in: Unified diff