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:
parent
6273e09164
commit
e2db57d9aa
|
@ -195,7 +195,7 @@ public class GeonetworkResolver extends HttpServlet{
|
||||||
boolean authorized = GNAuthentication.login(httpUtils, geonetworkParams.getUrl(), geonetworkParams.getUser(), geonetworkParams.getPassword());
|
boolean authorized = GNAuthentication.login(httpUtils, geonetworkParams.getUrl(), geonetworkParams.getUser(), geonetworkParams.getPassword());
|
||||||
logger.trace("Authorized on "+geonetworkParams +" ? "+authorized);
|
logger.trace("Authorized on "+geonetworkParams +" ? "+authorized);
|
||||||
String gnCSWlURL = geonetworkParams.getUrl()+"/"+CSW_SERVER;
|
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());
|
String response = httpUtils.post(gnCSWlURL, req.getInputStream(), req.getContentType());
|
||||||
logger.info("Response return Content-Type: "+httpUtils.getLastContentType());
|
logger.info("Response return Content-Type: "+httpUtils.getLastContentType());
|
||||||
resp.setContentType(httpUtils.getLastContentType());
|
resp.setContentType(httpUtils.getLastContentType());
|
||||||
|
|
|
@ -358,6 +358,14 @@ public class HTTPCallsUtils {
|
||||||
if(requestEntity != null)
|
if(requestEntity != null)
|
||||||
httpMethod.setRequestEntity(requestEntity);
|
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);
|
lastHttpStatus = client.executeMethod(httpMethod);
|
||||||
|
|
||||||
switch(lastHttpStatus) {
|
switch(lastHttpStatus) {
|
||||||
|
|
Loading…
Reference in New Issue