You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/07/28 17:25:01 UTC

svn commit: r426564 - /webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java

Author: danj
Date: Fri Jul 28 08:25:01 2006
New Revision: 426564

URL: http://svn.apache.org/viewvc?rev=426564&view=rev
Log:
Added an init param for <resource-type> that are WSRF WsResources - name is 'validate-wsrp-schema' and it 
allows users to shut off WSRP schema validation. Default value is 'true'.

Modified:
    webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java

Modified: webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java?rev=426564&r1=426563&r2=426564&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/impl/SimpleWsResource.java Fri Jul 28 08:25:01 2006
@@ -61,6 +61,8 @@
     //
     private static Messages _MESSAGES = MessagesFactory.get(SimpleResource.class);
     
+    private static final String _VALIDATE_WSRP_PARAM = "validate-wsrp-schema";
+    
     private ResourcePropertyCollection _properties = null;
     
     protected MetadataDescriptor createMetadataDescriptor(Document wsdl)
@@ -186,8 +188,15 @@
         super.initialize();
         
         _properties.applyMetadata();
-
-        _properties.validateSchema();
+        
+        String validateParam = getInitializationParameter(_VALIDATE_WSRP_PARAM);
+        
+        //
+        // validate WSRP schema - can be shut off with an init param flag
+        //
+        if (validateParam == null || validateParam.equalsIgnoreCase("true"))
+            _properties.validateSchema();
+        
         _properties.validateMetadata();
     }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org