org.ow2.petals.se.validation.service
Class ValidationService

java.lang.Object
  extended by org.ow2.petals.se.validation.service.ValidationService

public class ValidationService
extends java.lang.Object

The Validation service.

Author:
Adrien Louis - EBM WebSourcing, Mathias Beldame - EBM WebSourcing

Constructor Summary
ValidationService(java.util.logging.Logger logger)
          Constructor.
 
Method Summary
 void filter(org.ow2.petals.component.framework.api.message.Exchange exchange, javax.xml.validation.Schema xsdSchema)
          Implementation of the filter operation.
 void validate(org.ow2.petals.component.framework.api.message.Exchange exchange, javax.xml.validation.Schema xsdSchema)
          Implementation of the validate operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationService

public ValidationService(java.util.logging.Logger logger)
Constructor.

Parameters:
logger - the component's logger
Method Detail

filter

public void filter(org.ow2.petals.component.framework.api.message.Exchange exchange,
                   javax.xml.validation.Schema xsdSchema)
            throws javax.jbi.messaging.MessagingException,
                   org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Implementation of the filter operation.

If the message is valid, it is forwarded on the OUT. Otherwise, a Fault is set.

Parameters:
exchange - the exchange
xsdSchema - the XML schema instance
Throws:
javax.jbi.messaging.MessagingException - if the fault could be set on the exchange
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if the fault could not be created

validate

public void validate(org.ow2.petals.component.framework.api.message.Exchange exchange,
                     javax.xml.validation.Schema xsdSchema)
              throws javax.jbi.messaging.MessagingException,
                     org.ow2.petals.component.framework.api.exception.PEtALSCDKException
Implementation of the validate operation.

If message is valid, it is forwarded on the OUT. Otherwise, a Fault is set.

Parameters:
exchange - the exchange
xsdSchema - the XML schema instance
Throws:
javax.jbi.messaging.MessagingException - if the fault could be set on the exchange
org.ow2.petals.component.framework.api.exception.PEtALSCDKException - if the fault could not be created


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.