Added comments

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-transfer/uri-resolver@126989 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2016-04-11 12:36:40 +00:00
parent 6273e09164
commit e2db57d9aa
2 changed files with 9 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public class GeonetworkResolver extends HttpServlet{
boolean authorized = GNAuthentication.login(httpUtils, geonetworkParams.getUrl(), geonetworkParams.getUser(), geonetworkParams.getPassword());
logger.trace("Authorized on "+geonetworkParams +" ? "+authorized);
String gnCSWlURL = geonetworkParams.getUrl()+"/"+CSW_SERVER;
logger.info("Sending CSW request to URL: "+gnCSWlURL);
logger.info("Sending CSW POST request to URL: "+gnCSWlURL);
String response = httpUtils.post(gnCSWlURL, req.getInputStream(), req.getContentType());
logger.info("Response return Content-Type: "+httpUtils.getLastContentType());
resp.setContentType(httpUtils.getLastContentType());

View File

@ -358,6 +358,14 @@ public class HTTPCallsUtils {
if(requestEntity != null)
httpMethod.setRequestEntity(requestEntity);
/*if(logger.isDebugEnabled()){
if( httpMethod.getRequestEntity() instanceof InputStreamRequestEntity){
InputStreamRequestEntity is = (InputStreamRequestEntity) httpMethod.getRequestEntity();
is.getContent();
}
logger.trace(requestEntity);
}*/
lastHttpStatus = client.executeMethod(httpMethod);
switch(lastHttpStatus) {