01: package com.bostechcorp.cbesb.runtime.ccsl.lib;
02:
03: import javax.jbi.messaging.MessageExchange;
04:
05: import org.apache.commons.logging.Log;
06:
07: /**
08: * Classes for TrxID must implement this interface
09: */
10:
11: public interface ITrxIdInterface {
12: /**
13: * The default method to call to extract TrxID from the MessageExchange and return as the String.
14: * @param logger - the loggger object
15: * @param exhange - the MessageExchange object passed in
16: * @return - the String to represent the TrxID for the exchange
17: */
18: public String process(Log logger, MessageExchange exchange);
19:
20: /**
21: * The default method to call to extract TrxID from the MessageExchange and return as the String.
22: * @param logger - the loggger object
23: * @param exchange - the MessageExchange object passed in
24: * @param content - the String content of the exchange object
25: * @return - the String to represent the TrxID for the exchange
26: */
27:
28: public String processAsString(Log logger, MessageExchange exchange,
29: String content);
30:
31: }
|