synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ind...@apache.org
Subject svn commit: r555620 - in /webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators: builtin/ValidateMediator.java transform/XSLTMediator.java
Date Thu, 12 Jul 2007 12:54:17 GMT
Author: indika
Date: Thu Jul 12 05:54:16 2007
New Revision: 555620

URL: http://svn.apache.org/viewvc?view=rev&rev=555620
Log:
set DOM require feature to true by default

Modified:
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java
    webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java?view=diff&rev=555620&r1=555619&r2=555620
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/builtin/ValidateMediator.java
Thu Jul 12 05:54:16 2007
@@ -182,7 +182,7 @@
                 }
             }
         }
-        // no need to synchronized ,schema instance is tread-safe
+        // no need to synchronized ,schema instance is thread-safe
         try {
             Validator validator = cachedSchema.newValidator();
             validator.setErrorHandler(errorHandler);
@@ -246,9 +246,10 @@
         public SAXParseException getSaxParseException() {
             return saxParseException;
         }
+        
         /**
          * To set explicitly validation error condition
-         * @param validationError
+         * @param validationError  is occur validation error?
          */
         public void setValidationError(boolean validationError) {
             this.validationError = validationError;
@@ -300,8 +301,7 @@
      * @return property string value (usually true|false)
      */
     public Object getFeature(String key) {
-        Iterator iter = explicityFeatures.iterator();
-        while (iter.hasNext()) {
+        for (Iterator iter = explicityFeatures.iterator(); iter.hasNext();) {
             MediatorProperty prop = (MediatorProperty) iter.next();
             if (key.equals(prop.getName())) {
                 return prop.getValue();
@@ -315,7 +315,7 @@
      *
      * @param  featureName The name of the feature
      * @param isFeatureEnable should this feature enable?(true|false)
-    * @see #getFeature(String)
+     * @see #getFeature(String)
      */
    public void addFeature(String featureName, boolean isFeatureEnable) {
         try {

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java?view=diff&rev=555620&r1=555619&r2=555620
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java
(original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java
Thu Jul 12 05:54:16 2007
@@ -72,7 +72,7 @@
      * transformation process
      */
     public static final String FEATURE =
-        "http://ws.apache.org/ns/synapse/transform/dom/feature";
+        "http://ws.apache.org/ns/synapse/transform/feature/dom";
     /**
      * The resource key/name which refers to the XSLT to be used for the transformation
      */
@@ -114,7 +114,7 @@
     /**
      *  Is it need to use DOMSource and DOMResult?
      */
-    private boolean isDOMRequired = false;
+    private boolean isDOMRequired = true;
 
     public static final String DEFAULT_XPATH = "//s11:Envelope/s11:Body/child::*[position()=1]
| " +
             "//s12:Envelope/s12:Body/child::*[position()=1]";



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


Mime
View raw message