1 15 package org.apache.tapestry.services.impl; 16 17 import javax.servlet.http.HttpServletRequest ; 18 import javax.servlet.http.HttpServletResponse ; 19 20 import org.apache.tapestry.services.RequestGlobals; 21 import org.apache.tapestry.web.WebRequest; 22 import org.apache.tapestry.web.WebResponse; 23 24 31 public class RequestGlobalsImpl implements RequestGlobals 32 { 33 private WebRequest _webRequest; 34 35 private WebResponse _webResponse; 36 37 private HttpServletRequest _request; 38 39 private HttpServletResponse _response; 40 41 public WebRequest getWebRequest() 42 { 43 return _webRequest; 44 } 45 46 public WebResponse getWebResponse() 47 { 48 return _webResponse; 49 } 50 51 public HttpServletRequest getRequest() 52 { 53 return _request; 54 } 55 56 public HttpServletResponse getResponse() 57 { 58 return _response; 59 } 60 61 public void store(WebRequest request, WebResponse response) 62 { 63 _webRequest = request; 64 _webResponse = response; 65 } 66 67 public void store(HttpServletRequest request, HttpServletResponse response) 68 { 69 _request = request; 70 _response = response; 71 } 72 } | Popular Tags |