1 // Copyright (c) 2004-2005 Sun Microsystems Inc., All Rights Reserved. 2 3 /* 4 * MessageNormalizer.java 5 * 6 * SUN PROPRIETARY/CONFIDENTIAL. 7 * This software is the proprietary information of Sun Microsystems, Inc. 8 * Use is subject to license terms. 9 * 10 */ 11 package com.sun.enterprise.jbi.serviceengine.util.soap; 12 13 import javax.jbi.JBIException; 14 import javax.jbi.messaging.NormalizedMessage; 15 16 17 /** 18 * This object is used by <code>MessageProcessor</code> implementations to normalize 19 * SOAP Message into JBI Normalized Message. The object maps 20 * the SOAP:Body element in the SOAP Message to the Normalized Message's message 21 * content. The SOAP:header elements are mapped to a property in the Normalized Message 22 * MessageContext. Protocol specific data will not be normalized. 23 * 24 * @author Sun Microsystems, Inc. 25 */ 26 public interface MessageNormalizer 27 { 28 /** 29 * Converts a SOAP Message to a NormalizedMessage format. 30 * 31 * @param soapWrapper request message. 32 * @param normalizedMessage jbi specific format. 33 * @param operation operation requested. 34 * 35 * @throws JBIException when the message cannot be normalized. 36 */ 37 void normalizeMessage( 38 SOAPWrapper soapWrapper, NormalizedMessage normalizedMessage, Operation operation) 39 throws JBIException; 40 } 41