airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chath...@apache.org
Subject svn commit: r1427243 - /airavata/trunk/modules/rest/client/src/main/java/org/apache/airavata/rest/client/ConfigurationResourceClient.java
Date Mon, 31 Dec 2012 21:04:55 GMT
Author: chathuri
Date: Mon Dec 31 21:04:55 2012
New Revision: 1427243

URL: http://svn.apache.org/viewvc?rev=1427243&view=rev
Log:
adding media type

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=1427243&r1=1427242&r2=1427243&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
Mon Dec 31 21:04:55 2012
@@ -401,7 +401,7 @@ public class ConfigurationResourceClient
             builder = BasicAuthHeaderUtil.getBuilder(
                     webResource, null, userName, null, cookie, gateway);
 
-            response = builder.get(ClientResponse.class);
+            response = builder.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
             int status = response.getStatus();
 
             if (status == ClientConstant.HTTP_OK) {
@@ -411,7 +411,7 @@ public class ConfigurationResourceClient
             } else if (status == ClientConstant.HTTP_UNAUTHORIZED) {
                 builder = BasicAuthHeaderUtil.getBuilder(
                         webResource, null, userName, callback.getPassword(userName), null,
gateway);
-                response = builder.get(ClientResponse.class);
+                response = builder.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
                 status = response.getStatus();
 
                 if (status == ClientConstant.HTTP_NO_CONTENT) {



Mime
View raw message