camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r563414 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: ./ processor/validation/
Date Tue, 07 Aug 2007 07:49:00 GMT
Author: jstrachan
Date: Tue Aug  7 00:48:59 2007
New Revision: 563414

URL: http://svn.apache.org/viewvc?view=rev&rev=563414
Log:
minor refactor to move the base validation exception int the core API

Added:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java
  (contents, props changed)
      - copied, changed from r563410, activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidationException.java
Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/DefaultValidationErrorHandler.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/NoXmlBodyValidationException.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaValidationException.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidatorErrorHandler.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/package.html

Copied: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java
(from r563410, activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidationException.java)
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java?view=diff&rev=563414&p1=activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidationException.java&r1=563410&p2=activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidationException.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java
Tue Aug  7 00:48:59 2007
@@ -14,13 +14,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.processor.validation;
-
-import org.apache.camel.CamelException;
-import org.apache.camel.Exchange;
-import org.apache.camel.CamelExchangeException;
+package org.apache.camel;
 
 /**
+ * The base class for any validation exception, such as
+ * {@link org.apache.camel.processor.validation.SchemaValidationException}
+ * so that it is easy to treat all validation errors in a similar way
+ * irrespective of the particular validation technology used.
+ *
  * @version $Revision: $
  */
 public class ValidationException extends CamelExchangeException {

Propchange: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/ValidationException.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/DefaultValidationErrorHandler.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/DefaultValidationErrorHandler.java?view=diff&rev=563414&r1=563413&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/DefaultValidationErrorHandler.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/DefaultValidationErrorHandler.java
Tue Aug  7 00:48:59 2007
@@ -16,14 +16,15 @@
  */
 package org.apache.camel.processor.validation;
 
-import org.xml.sax.SAXParseException;
-import org.xml.sax.SAXException;
 import org.apache.camel.Exchange;
+import org.apache.camel.ValidationException;
+import org.xml.sax.SAXException;
+import org.xml.sax.SAXParseException;
 
 import javax.xml.transform.dom.DOMResult;
 import javax.xml.validation.Schema;
-import java.util.List;
 import java.util.ArrayList;
+import java.util.List;
 
 /**
  * @version $Revision: $

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/NoXmlBodyValidationException.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/NoXmlBodyValidationException.java?view=diff&rev=563414&r1=563413&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/NoXmlBodyValidationException.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/NoXmlBodyValidationException.java
Tue Aug  7 00:48:59 2007
@@ -17,6 +17,7 @@
 package org.apache.camel.processor.validation;
 
 import org.apache.camel.Exchange;
+import org.apache.camel.ValidationException;
 
 /**
  * An exception found if no XML body is available on the inbound message

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaValidationException.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaValidationException.java?view=diff&rev=563414&r1=563413&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaValidationException.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/SchemaValidationException.java
Tue Aug  7 00:48:59 2007
@@ -17,9 +17,9 @@
 package org.apache.camel.processor.validation;
 
 import org.apache.camel.Exchange;
+import org.apache.camel.ValidationException;
 import org.xml.sax.SAXParseException;
 
-import javax.xml.validation.Schema;
 import java.util.List;
 
 /**

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidatorErrorHandler.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidatorErrorHandler.java?view=diff&rev=563414&r1=563413&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidatorErrorHandler.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/ValidatorErrorHandler.java
Tue Aug  7 00:48:59 2007
@@ -16,8 +16,9 @@
  */
 package org.apache.camel.processor.validation;
 
-import org.xml.sax.ErrorHandler;
 import org.apache.camel.Exchange;
+import org.apache.camel.ValidationException;
+import org.xml.sax.ErrorHandler;
 
 import javax.xml.transform.dom.DOMResult;
 import javax.xml.validation.Schema;
@@ -33,6 +34,7 @@
 
     /**
      * Process any errors which may have occurred during validation
+     *
      * @param exchange
      * @param schema
      * @param result

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/package.html
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/package.html?view=diff&rev=563414&r1=563413&r2=563414
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/package.html
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/validation/package.html
Tue Aug  7 00:48:59 2007
@@ -21,7 +21,8 @@
 </head>
 <body>
 
-Performs XML validation using <a href="http://java.sun.com/xml/jaxp/index.jsp">JAXP</a>
for validating against XSD or RelaxNG
+Performs XML validation using <a href="http://java.sun.com/xml/jaxp/index.jsp">JAXP</a>
for validating against XSD or
+RelaxNG
 
 </body>
 </html>



Mime
View raw message