Removed comments
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@128324 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
101cc621e0
commit
10d76c9e76
|
@ -252,6 +252,7 @@ public class GeonetworkResolver extends HttpServlet{
|
|||
logger.debug("param "+p + " value "+Arrays.toString(req.getParameterValues(p)));
|
||||
}
|
||||
|
||||
//DEBUG BODY
|
||||
// String readBody = IOUtils.toString(req.getReader());
|
||||
// logger.debug("doPost read body request: "+readBody);
|
||||
ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
|
||||
|
@ -282,17 +283,14 @@ public class GeonetworkResolver extends HttpServlet{
|
|||
IOUtils.copy(req.getReader(), byteArray);
|
||||
}
|
||||
|
||||
// String gnCSWlURL = geonetworkParams.getUrl()+"/"+CSW_SERVER;
|
||||
logger.info("Sending CSW POST request to URL: "+gnCSWlURL);
|
||||
logger.info("Content-Type: "+req.getContentType());
|
||||
//DEBUG
|
||||
logger.debug("POST - BODY : "+byteArray.toString());
|
||||
InputStream in = httpUtils.post(gnCSWlURL, new ByteArrayInputStream(byteArray.toByteArray()), req.getContentType(), req.getParameterMap());
|
||||
//END DEBUG
|
||||
// String response = httpUtils.post(gnCSWlURL, req.getInputStream(), req.getContentType());
|
||||
logger.info("Response return Content-Type: "+httpUtils.getLastContentType());
|
||||
resp.setContentType(httpUtils.getLastContentType());
|
||||
// InputStream in = IOUtils.toInputStream(response);
|
||||
OutputStream out = resp.getOutputStream();
|
||||
|
||||
if(in==null){
|
||||
|
|
Loading…
Reference in New Issue