Author: chathura
Date: Thu Jan 10 03:34:52 2008
New Revision: 12115
Log:
Minor change.
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/WSDLMediaTypeHandler.java
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/XSDMediaTypeHandler.java
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/WSDLMediaTypeHandler.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/WSDLMediaTypeHandler.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/WSDLMediaTypeHandler.java
Thu Jan 10 03:34:52 2008
@@ -45,11 +45,9 @@
}
public boolean put(String path, Resource resource) throws
RegistryException {
-
- String wsdlURL = resource.getProperty("fetchURL");
- wsdlFileProcessor.saveWSDLFileToRegistry(wsdlURL, getParentPath(path));
-
- return true;
+ // let the default media type handler handle if the wsdl is given as a
resource. because
+ // we can't import dependencies, if it is given as a resource.
+ return false;
}
public boolean importResource(String path, String sourceURL, String
mediaType) throws RegistryException {
Modified:
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/XSDMediaTypeHandler.java
==============================================================================
---
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/XSDMediaTypeHandler.java
(original)
+++
trunk/registry/modules/core/src/main/java/org/wso2/registry/jdbc/mediatypes/builtin/XSDMediaTypeHandler.java
Thu Jan 10 03:34:52 2008
@@ -45,10 +45,9 @@
}
public boolean put(String path, Resource resource) throws
RegistryException {
- String xsdURL = resource.getProperty("fetchURL");
- schemaFileProcessor.saveSchemaFileToRegistry(xsdURL,
getParentPath(path));
-
- return true;
+ // let the default media type handler handle if the xsd is given as a
resource. because
+ // we can't import dependencies, if it is given as a resource.
+ return false;
}
public boolean importResource(String path, String sourceURL, String
mediaType) throws RegistryException {
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev