it.imolinfo.jbi4ejb.processor
Class Jbi4EjbNormalizer

java.lang.Object
  extended by it.imolinfo.jbi4ejb.processor.Jbi4EjbNormalizer

public class Jbi4EjbNormalizer
extends java.lang.Object

Jbi4Ejb normalizer class (convert Source to nmr message).

Author:
Marco Piraccini

Constructor Summary
Jbi4EjbNormalizer()
          Instantiates a new jbi4 ejb normalizer.
 
Method Summary
 void normalize(javax.xml.transform.Source xmlSource, javax.jbi.messaging.NormalizedMessage normalizedMsg, Jbi4EjbEndpoint endpoint, javax.xml.namespace.QName operation, boolean toWrap)
          Normalize the message.
 void normalizeFault(javax.xml.transform.Source xmlSource, javax.jbi.messaging.Fault fault, Jbi4EjbEndpoint endpoint, javax.xml.namespace.QName operation, java.lang.String faultName, boolean toWrap)
          Normalize a fault message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jbi4EjbNormalizer

public Jbi4EjbNormalizer()
                  throws Jbi4EjbException
Instantiates a new jbi4 ejb normalizer.

Throws:
Jbi4EjbException - if some error occurs in the normalizer creation
Method Detail

normalize

public void normalize(javax.xml.transform.Source xmlSource,
                      javax.jbi.messaging.NormalizedMessage normalizedMsg,
                      Jbi4EjbEndpoint endpoint,
                      javax.xml.namespace.QName operation,
                      boolean toWrap)
               throws Jbi4EjbException
Normalize the message.

Parameters:
xmlSource - the xmlSource to normalize
normalizedMsg - the normlized message
endpoint - the invoked endpoint
operation - the invoked operation
toWrap - if the message must be wrapped
Throws:
Jbi4EjbException - if some problem occurs in normalization

normalizeFault

public void normalizeFault(javax.xml.transform.Source xmlSource,
                           javax.jbi.messaging.Fault fault,
                           Jbi4EjbEndpoint endpoint,
                           javax.xml.namespace.QName operation,
                           java.lang.String faultName,
                           boolean toWrap)
                    throws Jbi4EjbException
Normalize a fault message.

Parameters:
xmlSource - The xml fault source
fault - The Fault
endpoint - The jbi4ejb endpoint
operation - The operation
faultName - The fault name
toWrap - If the fault must be wrapped
Throws:
Jbi4EjbException - If some problem occurs


Copyright © 2007-2008 Imola Informatica. All Rights Reserved.