|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.jwarp.service.web.WebContext
This is an implementation of the WebContext interface. It has the ability to hook in commonly re-usable utilities via the configuraiton file for the Broker. These commonly re-usable utilities are then made available for use in the context. They include: Cookie, Form, FormList, and several others--see the WebMacro.properties file for the actual list, and a description of what's been loaded.
This class is made to be prototyped. You create a prototypical instance of the WebContext containing all the desired tools and a broker. You then use the newInstance(req,resp) method to create an instance of the WebContext to use versus a particular request.
| Field Summary | |
(package private) IMutableRequest |
_request
The request for this http connect |
(package private) javax.servlet.http.HttpServletResponse |
_response
The response for this http connect |
(package private) JWarpServlet |
owner
The owning servlet reference. |
static java.lang.String |
TICKET_ID
|
| Constructor Summary | |
WebContext()
Construct a new WebContext. |
|
WebContext(JWarpServlet owner)
Construct a new WebContext. |
|
| Method Summary | |
void |
clear()
Clear a WebContext of it's non-shared data |
java.lang.Object |
get(java.lang.String key)
|
JWarpServlet |
getOwner()
|
IMutableRequest |
getRequest()
The HttpServletRequest object which contains information provided by the HttpServlet superclass about the Request. |
javax.servlet.http.HttpServletResponse |
getResponse()
The HttpServletResponse object which contains information about the response we are going to send back. |
javax.servlet.http.HttpSession |
getSession()
Returns the session |
java.lang.Object |
getTemp(java.lang.String key)
|
ITicket |
getTicket()
|
WebContext |
newInstance(IMutableRequest req,
javax.servlet.http.HttpServletResponse resp)
Create a new WebContext like this one, only with new values for request and response |
void |
put(java.lang.String key,
java.lang.Object object)
|
void |
putTemp(java.lang.String key,
java.lang.Object object)
|
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final java.lang.String TICKET_ID
IMutableRequest _request
javax.servlet.http.HttpServletResponse _response
JWarpServlet owner
| Constructor Detail |
public WebContext()
public WebContext(JWarpServlet owner)
| Method Detail |
public JWarpServlet getOwner()
public final WebContext newInstance(IMutableRequest req,
javax.servlet.http.HttpServletResponse resp)
public void clear()
public javax.servlet.http.HttpSession getSession()
public final IMutableRequest getRequest()
HttpServletRequest,
org.webmacro.util.Propertypublic final javax.servlet.http.HttpServletResponse getResponse()
HttpServletResponse,
org.webmacro.util.Propertypublic ITicket getTicket()
public void put(java.lang.String key,
java.lang.Object object)
public void putTemp(java.lang.String key,
java.lang.Object object)
public java.lang.Object get(java.lang.String key)
public java.lang.Object getTemp(java.lang.String key)
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||