FileDocCategorySizeDatePackage
MessageDenormalizer.javaAPI DocGlassfish v2 API4183Fri May 04 22:30:28 BST 2007com.sun.enterprise.jbi.serviceengine.util.soap

MessageDenormalizer

public interface MessageDenormalizer
This object is used by MessageProcessor implementations to denormalize a JBI NormalizedMessage and convert it into a SOAP Message. The object maps the Normalized Message's message content to SOAP:Body element in the SOAP Message. The SOAP:header elements are extracted from a Normalized Message's message context property "SoapHeader".
author
Sun Microsystems, Inc.

Fields Summary
Constructors Summary
Methods Summary
public SOAPWrapperdenormalizeFaultMessage(javax.jbi.messaging.Fault faultMessage)
Converts a fault mesage to a SOAP Message using the specified fault code.

param
faultMessage fault message.
return
a new SOAPWrapper instance which contains the SOAP fault Message.

public SOAPWrapperdenormalizeMessage(javax.jbi.messaging.NormalizedMessage normalizedMessage, Operation operation, boolean isResponse)
Converts a normalized message to a SOAP Message.

param
normalizedMessage message to be denormalized.
param
operation operation invoked
param
isResponse indicates if a response messages needs to be generated
return
the SOAP Message.

public SOAPWrapperdenormalizeMessage(java.lang.Exception exception)
Converts an exception to a SOAP Message. It uses the Server fault code in the soap namespace.

param
exception exception instance
return
denormalized exception instance.

public SOAPWrapperdenormalizeMessage(java.lang.Exception exception, java.lang.String faultCode)
Converts an exception to a SOAP Message. It uses the faultCode passed. The code expects the faultcode passed to be part of the soap namespace.

param
exception exception instance
param
faultCode fault code
return
denormalized exception instance.