1 /* 2 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 3 * The software in this package is published under the terms of the CPAL v1.0 4 * license, a copy of which has been included with this distribution in the 5 * LICENSE.txt file. 6 */ 7 package org.mule.api.routing; 8 9 import org.mule.api.MuleMessage; 10 11 /** 12 * This mapping us used by routers to control how Important message information is pulled from the current 13 * message. It is unlikely that many users will need to configure a custom mapping except where this information 14 * is already set within their message type and Mule should use that rather than generate it itself. 15 */ 16 public interface MessageInfoMapping 17 { 18 String getMessageId(MuleMessage message); 19 20 String getCorrelationId(MuleMessage message); 21 }