Author: chathuri
Date: Wed Oct 24 21:44:46 2012
New Revision: 1401899
URL: http://svn.apache.org/viewvc?rev=1401899&view=rev
Log: (empty)
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Modified:
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
URL:
http://svn.apache.org/viewvc/airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java?rev=1401899&r1=1401898&r2=1401899&view=diff
==============================================================================
---
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
(original)
+++
airavata/sandbox/airavata-registry-rest/src/main/java/org/apache/airavata/services/registry/rest/resources/RegistryResource.java
Wed Oct 24 21:44:46 2012
@@ -536,9 +536,9 @@ import java.util.Map;
@POST
@Path("hostdescriptor/save")
- @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
+ @Consumes(MediaType.TEXT_XML)
@Produces(MediaType.TEXT_PLAIN)
- public Response addHostDescriptor(@FormParam("host") String host) {
+ public Response addHostDescriptor(String host) {
airavataRegistry = (AiravataRegistry2)
context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
try{
HostDescription hostDescription = HostDescription.fromXML(host);
@@ -559,9 +559,9 @@ import java.util.Map;
@POST
@Path("hostdescriptor/update")
- @Consumes(MediaType.APPLICATION_FORM_URLENCODED)
+ @Consumes(MediaType.TEXT_XML)
@Produces(MediaType.TEXT_PLAIN)
- public Response updateHostDescriptor(@FormParam("host") String host) {
+ public Response updateHostDescriptor(String host) {
airavataRegistry = (AiravataRegistry2)
context.getAttribute(RestServicesConstants.AIRAVATA_REGISTRY);
try{
HostDescription hostDescription = HostDescription.fromXML(host);