KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > terracotta > session > BaseRequestResponseFactory


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.terracotta.session;
5
6 import javax.servlet.http.HttpServletRequest JavaDoc;
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8
9 public class BaseRequestResponseFactory implements RequestResponseFactory {
10
11   public TerracottaRequest createRequest(SessionId id, HttpServletRequest JavaDoc request, HttpServletResponse JavaDoc response) {
12     return new SessionRequest(id, request, response);
13   }
14
15   public TerracottaResponse createResponse(TerracottaRequest request, HttpServletResponse JavaDoc response) {
16     return new SessionResponse(request, response);
17   }
18
19 }
20
Popular Tags