1 17 18 package org.apache.sandesha.interop; 19 20 import org.apache.axis.components.logger.LogFactory; 21 import org.apache.commons.logging.Log; 22 23 import java.util.HashMap ; 24 import java.util.Map ; 25 26 32 public class RMInteropService { 33 private static Map sequences = new HashMap (); 34 private static final Log log = LogFactory.getLog(RMInteropService.class.getName()); 35 36 public String echoString(String text, String sequence) { 37 38 if (sequences.get(sequence) != null) { 39 text = (String ) sequences.get(sequence) + text; 40 sequences.put(sequence, new String (text)); 41 } else { 42 sequences.put(sequence, (new String (text))); 43 44 } 45 log.debug("Echo Service " + text); 46 return text; 47 } 48 49 public void ping(String text) { 50 log.debug("Ping Service " + text); 51 } 52 } 53 | Popular Tags |