01: /* PageContext.java
02:
03: {{IS_NOTE
04: Purpose:
05:
06: Description:
07:
08: History:
09: Sat Oct 27 09:53:05 2007, Created by tomyeh
10: }}IS_NOTE
11:
12: Copyright (C) 2007 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.web.servlet.xel;
20:
21: import javax.servlet.ServletConfig;
22: import javax.servlet.ServletContext;
23: import javax.servlet.ServletRequest;
24: import javax.servlet.ServletResponse;
25: import javax.servlet.http.HttpSession;
26:
27: import org.zkoss.xel.VariableResolver;
28:
29: /**
30: * Represents a page context.
31: * The pageContext variable in EL expressions references to an instance
32: * of this interface.
33: *
34: * <p>It is a replacement of javax.servlet.jsp.PageContext, since
35: * ZK doesn't depend on JSP.
36: *
37: * @author tomyeh
38: * @since 3.0.0
39: */
40: public interface PageContext {
41: /** The current request.
42: */
43: public ServletRequest getRequest();
44:
45: /** The current response.
46: */
47: public ServletResponse getResponse();
48:
49: /** The Servlet configuration.
50: */
51: public ServletConfig getServletConfig();
52:
53: /** The Servlet context.
54: */
55: public ServletContext getServletContext();
56:
57: /** The current session.
58: */
59: public HttpSession getSession();
60:
61: /** The current variable resolver.
62: */
63: public VariableResolver getVariableResolver();
64: }
|