1 18 19 package org.apache.beehive.netui.tools.testrecorder.server.serverAdapter; 20 21 import org.apache.beehive.netui.tools.testrecorder.shared.ResponseData; 22 23 import java.util.regex.Pattern ; 24 import java.util.regex.Matcher ; 25 26 31 public abstract class AbstractServerAdapter implements ServerAdapter { 32 33 36 public String replaceSessionID( String string ) { 37 Matcher matcher = getSessionIdPattern().matcher( string ); 38 string = matcher.replaceAll( ResponseData.NON_UNIQUE_SESSION_ID ); 39 return string; 40 41 } 42 43 public abstract Pattern getSessionIdPattern(); 44 45 } 46 | Popular Tags |