01: /*
02: * Copyright (c) 2002-2003 by OpenSymphony
03: * All rights reserved.
04: */
05: package com.opensymphony.webwork;
06:
07: /**
08: * Constants used by WebWork. The constants can be used to get or set objects out of the action context
09: * or other collections.<p>
10: * <p/>
11: * Example:
12: * <ul><code>ActionContext.getContext().put(HTTP_REQUEST, request);</code></ul>
13: * <p/>
14: * or
15: * <p/>
16: * <ul><code>
17: * ActionContext context = ActionContext.getContext();<br>
18: * HttpServletRequest request = (HttpServletRequest)context.get(HTTP_REQUEST);</code></ul>
19: *
20: * @author Patrick Lightbody
21: * @author Bill Lynch (docs)
22: */
23: public interface WebWorkStatics {
24:
25: /**
26: * Constant for the HTTP request object.
27: */
28: public static final String HTTP_REQUEST = "com.opensymphony.xwork.dispatcher.HttpServletRequest";
29:
30: /**
31: * Constant for the HTTP response object.
32: */
33: public static final String HTTP_RESPONSE = "com.opensymphony.xwork.dispatcher.HttpServletResponse";
34:
35: /**
36: * Constant for an HTTP {@link javax.servlet.RequestDispatcher request dispatcher}.
37: */
38: public static final String SERVLET_DISPATCHER = "com.opensymphony.xwork.dispatcher.ServletDispatcher";
39:
40: /**
41: * Constant for the {@link javax.servlet.ServletContext servlet context} object.
42: */
43: public static final String SERVLET_CONTEXT = "com.opensymphony.xwork.dispatcher.ServletContext";
44:
45: /**
46: * Constant for the JSP {@link javax.servlet.jsp.PageContext page context}.
47: */
48: public static final String PAGE_CONTEXT = "com.opensymphony.xwork.dispatcher.PageContext";
49: }
|