Author: chathuri
Date: Fri Jan 4 21:01:55 2013
New Revision: 1429125
URL: http://svn.apache.org/viewvc?rev=1429125&view=rev
Log:
adding some of missing status checks
Modified:
airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java
Modified:
airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java
URL:
http://svn.apache.org/viewvc/airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java?rev=1429125&r1=1429124&r2=1429125&view=diff
==============================================================================
---
airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java
(original)
+++
airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java
Fri Jan 4 21:01:55 2013
@@ -125,6 +125,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return null;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "
@@ -174,6 +176,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return configurationValueList;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "
@@ -395,6 +399,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return uriList;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "
@@ -450,6 +456,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return uriList;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "
@@ -504,6 +512,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return null;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "
@@ -555,6 +565,8 @@ public class ConfigurationResourceClient
CookieManager.setCookie(cookie);
}
}
+ } else if (status == ClientConstant.HTTP_NO_CONTENT) {
+ return null;
} else {
logger.error(response.getEntity(String.class));
throw new RuntimeException("Failed : HTTP error code : "