Revision 41285 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.remoteclient/src/main/java/org/gvsig/remoteclient/wms/wms_1_1_1/WMSProtocolHandler1_1_1.java

View differences:

WMSProtocolHandler1_1_1.java
47 47
import org.gvsig.remoteclient.wms.wms_1_1_1.request.WMSGetFeatureInfoRequest1_1_1;
48 48
import org.gvsig.remoteclient.wms.wms_1_1_1.request.WMSGetLegendGraphicRequest1_1_1;
49 49
import org.gvsig.remoteclient.wms.wms_1_1_1.request.WMSGetMapRequest1_1_1;
50
import org.slf4j.Logger;
51
import org.slf4j.LoggerFactory;
50 52

  
51 53
/**
52 54
 * <p>
......
54 56
 * </p>
55 57
 */
56 58
public class WMSProtocolHandler1_1_1 extends WMSProtocolHandler {
59
    
60
    private static final Logger logger = LoggerFactory.getLogger(WMSProtocolHandler1_1_1.class);
61
    
57 62
	private WMSLayer1_1_1 fakeRootLayer;
58 63

  
59 64
	public WMSProtocolHandler1_1_1()
......
124 129
    		}
125 130
    	}
126 131
    	catch(XmlPullParserException parser_ex){
127
    		parser_ex.printStackTrace();
132
                logger.warn("Error parsing capabilites.",parser_ex);
128 133
    		return false;
129 134
    	}
130 135
   		catch (IOException ioe) {
131
   			ioe.printStackTrace();
136
                        logger.warn("Error parsing capabilites.",ioe);
132 137
   			return false;
133 138
		} finally {
134 139
			return true;
......
321 326
                 }
322 327
        	}
323 328
        catch(XmlPullParserException parser_ex){
324
            System.out.println(parser_ex.getMessage());
325
            parser_ex.printStackTrace();
329
            logger.warn("",parser_ex);
326 330
        }
327 331
        catch (IOException ioe) {
328
            ioe.printStackTrace();
332
            logger.warn("",ioe);
329 333
        }
330 334
        String message = errors.size()>0? "" : null;
331 335
        for (int i = 0; i < errors.size(); i++) {

Also available in: Unified diff