Revision 37871 branches/v2_0_0_prep/applications/appCatalog/src/org/gvsig/catalog/protocols/HTTPPostProtocol.java

View differences:

HTTPPostProtocol.java
50 50
import java.net.URL;
51 51
import java.util.Collection;
52 52

  
53
import org.slf4j.Logger;
54
import org.slf4j.LoggerFactory;
55

  
53 56
import org.gvsig.catalog.metadataxml.XMLTree;
54 57
import org.gvsig.catalog.utils.Strings;
55 58

  
......
61 64
 * @author Jorge Piera Llodra (piera_jor@gva.es)
62 65
 */
63 66
public class HTTPPostProtocol implements IProtocols {
64

  
65
/**
66
 * @return 
67
 * @param url 
68
 * @param message 
69
 * @param firstRecord 
70
 */
67
    private static final Logger LOG =
68
        LoggerFactory.getLogger(HTTPPostProtocol.class);
69
    
70
    /**
71
     * @return 
72
     * @param url 
73
     * @param message 
74
     * @param firstRecord 
75
     */
71 76
    public Collection doQuery(URL url, Object message, int firstRecord) {        
72 77
        String body = (String) message;
73 78
        ByteArrayInputStream output = null;
......
103 108
        output = new ByteArrayInputStream(str.getBytes());
104 109
            
105 110
        }  catch (IOException e) {
106
            // TODO Auto-generated catch block
107
            //e.printStackTrace();
111
            LOG.error("Error sending the POST request", e);
108 112
            return null;
109 113
        } 
110 114
        
......
148 152
    	
149 153
    		
150 154
    	}  catch (IOException e) {
151
    		e.printStackTrace();           
155
    	    LOG.error("Error sending the POST request", e);
152 156
    	}           
153 157
             
154 158
    }    

Also available in: Unified diff