Author: glen
Date: Thu Jan 24 06:48:59 2008
New Revision: 12841
Log:
Use secure registry, and actually return the ResponseContext. :)
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/app/AtomRegistry.java
Thu Jan 24 06:48:59 2008
@@ -113,12 +113,15 @@
Resource metadata = new Resource();
String location;
try {
- location = jdbcregistry.importResource(suggestedPath,
importURL, metadata);
+ location =
getSecureRegistry(request).importResource(suggestedPath,
+ importURL,
+ metadata);
} catch (RegistryException e) {
return new StringResponseContext(abdera, e, 500);
}
rc = new EmptyResponseContext(200);
rc.setLocation(location);
+ return rc;
}
try {
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev