Package com.sun.messaging.jmq.jmsclient.validation

Examples of com.sun.messaging.jmq.jmsclient.validation.XMLValidator


            //do validation here
            if (debug) {
              Debug.println("*** Validating xml message ....");
            }
           
            XMLValidator validator = (XMLValidator) this.xmlValidationTable.get(dest);
            String xml = ((TextMessage) message).getText();
            validator.validate(xml);
           
            if (debug) {
              Debug.println("*** xml message validated against xsd at URI: " + validator.getURIList());
            }
          }
        } else {
          if (debug) {
            Debug.println("***** no validation for message ... on dest: " + dest.getName() );
View Full Code Here


          shouldValidate = ((Boolean)validateObj).booleanValue();
        }
       
        if (shouldValidate) {
         
          XMLValidator validator = null;
          String xsdURIList = null;
         
          Object uriobj = ackProperties.get("JMQXMLSchemaURIList");
         
          if (uriobj != null) {
            xsdURIList = (String)uriobj;
           
            //minimum length of a valid uri
            validator = ValidatorFactory.newValidator(xsdURIList);
           
            //set reloadXSDOnFailure flag
            Object reloadObj = ackProperties.get("JMQReloadXMLSchemaOnFailure");
            if (reloadObj != null) {
              boolean doReload = ((Boolean)reloadObj).booleanValue();
              validator.setReloadOnFailure(doReload);
            }
           
          } else {
            validator = ValidatorFactory.newValidator();
          }
View Full Code Here

TOP

Related Classes of com.sun.messaging.jmq.jmsclient.validation.XMLValidator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.