it.imolinfo.jbi4corba.jbi.processor
Class MessageNormalizer

java.lang.Object
  extended by it.imolinfo.jbi4corba.jbi.processor.MessageNormalizer

public class MessageNormalizer
extends Object

Message normalizer class (convert Source to nmr message).

Author:
Marco Piraccini

Constructor Summary
MessageNormalizer()
          Instantiates a new message normalizer.
 
Method Summary
 Source normalize(Source xmlSource, Jbi4CorbaEndpoint endpoint, QName operation, boolean toWrap, boolean isOutput)
          Normalize the message.
 void normalize(Source xmlSource, javax.jbi.messaging.NormalizedMessage normalizedMsg, Jbi4CorbaEndpoint endpoint, QName operation, boolean toWrap, boolean isOutput)
          Normalize the message.
 void normalizeFault(Source xmlSource, javax.jbi.messaging.Fault fault, Jbi4CorbaEndpoint endpoint, QName operation, 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

MessageNormalizer

public MessageNormalizer()
                  throws Jbi4CorbaException
Instantiates a new message normalizer.

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

normalize

public void normalize(Source xmlSource,
                      javax.jbi.messaging.NormalizedMessage normalizedMsg,
                      Jbi4CorbaEndpoint endpoint,
                      QName operation,
                      boolean toWrap,
                      boolean isOutput)
               throws Jbi4CorbaException
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
isOutput - true if the output is an output message
Throws:
Jbi4CorbaException - if some problem occurs in normalization

normalize

public Source normalize(Source xmlSource,
                        Jbi4CorbaEndpoint endpoint,
                        QName operation,
                        boolean toWrap,
                        boolean isOutput)
                 throws Jbi4CorbaException
Normalize the message.

Parameters:
xmlSource - the xmlSource to normalize
endpoint - the invoked endpoint
operation - the invoked operation
toWrap - if the message must be wrapped
isOutput - true if the message is an output message
Returns:
Throws:
Jbi4CorbaException - if some problem occurs in normalization

normalizeFault

public void normalizeFault(Source xmlSource,
                           javax.jbi.messaging.Fault fault,
                           Jbi4CorbaEndpoint endpoint,
                           QName operation,
                           String faultName,
                           boolean toWrap)
                    throws Jbi4CorbaException
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:
Jbi4CorbaException - If some problem occurs


Copyright © 2005-2010 Imola Informatica. All Rights Reserved.