1 17 18 package org.apache.sandesha.intergratedtest; 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 27 public class RMTestService { 28 private static Map sequences = new HashMap (); 29 private static final Log log = LogFactory.getLog(RMTestService.class.getName()); 30 31 public String echoString(String text, String sequence) { 32 33 if (sequences.get(sequence) != null) { 34 text = (String ) sequences.get(sequence) + text; 35 sequences.put(sequence, new String (text)); 36 } else { 37 sequences.put(sequence, (new String (text))); 38 39 } 40 if (log.isDebugEnabled()) { 41 log.debug("ECHO-STRING SERVICE " + text); 42 } 43 return text; 44 } 45 46 public void ping(String text) { 47 if (log.isDebugEnabled()) { 48 log.debug("PING-STRING SERVICE " + text); 49 } 50 } 51 } 52 | Popular Tags |