01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.tomcat50.session;
05:
06: import org.apache.coyote.tomcat5.CoyoteRequest;
07: import org.apache.coyote.tomcat5.CoyoteResponse;
08:
09: import com.terracotta.session.BaseRequestResponseFactory;
10: import com.terracotta.session.SessionId;
11: import com.terracotta.session.SessionManager;
12: import com.terracotta.session.TerracottaRequest;
13:
14: import javax.servlet.http.HttpServletRequest;
15: import javax.servlet.http.HttpServletResponse;
16:
17: public class Tomcat50RequestResponseFactory extends
18: BaseRequestResponseFactory {
19:
20: public TerracottaRequest createRequest(SessionId id,
21: HttpServletRequest request, HttpServletResponse response,
22: SessionManager manager) {
23: return new SessionRequest50(id, (CoyoteRequest) request,
24: (CoyoteResponse) response, manager);
25: }
26:
27: }
|