1 18 19 package org.apache.beehive.netui.tools.testrecorder.server.serverAdapter; 20 21 import org.apache.beehive.netui.tools.testrecorder.server.FilterData; 22 import org.apache.beehive.netui.tools.testrecorder.server.DefaultFilterData; 23 import org.apache.beehive.netui.tools.testrecorder.server.state.State; 24 25 import javax.servlet.ServletRequest ; 26 import javax.servlet.ServletResponse ; 27 import java.util.regex.Pattern ; 28 29 34 public class DefaultServerAdapter extends AbstractServerAdapter { 35 36 protected static final Pattern sessIdPattern = 37 Pattern.compile( ";jsessionid=.[a-zA-Z0-9]+" ); 38 39 public FilterData genFilterDataInstance( ServletRequest request, ServletResponse response, State state ) { 40 return new DefaultFilterData( request, response, this ); 41 } 42 43 public DefaultServerAdapter() { 44 } 45 46 public Pattern getSessionIdPattern() { 47 return sessIdPattern; 48 } 49 } 50 | Popular Tags |