1 17 18 package org.apache.sandesha.samples; 19 20 import java.util.HashMap ; 21 import java.util.Map ; 22 23 29 public class RMSampleService { 30 private static Map sequences = new HashMap (); 31 32 public String echoString(String text, String sequence) { 33 34 if (sequences.get(sequence) != null) { 35 text = (String ) sequences.get(sequence) + text; 36 sequences.put(sequence, new String (text)); 37 } else { 38 sequences.put(sequence, (new String (text))); 39 40 } 41 return text; 42 } 43 44 public void ping(String text) { 45 } 47 } 48 | Popular Tags |