tomp.ext.servlet
Class RequestAction
java.lang.Object
|
+--tomp.ext.Action
|
+--tomp.ext.servlet.ServletAction
|
+--tomp.ext.servlet.RequestAction
- Direct Known Subclasses:
- EndApplicationAction, UserLoggedAction
- public class RequestAction
- extends ServletAction
Class RequestAction is an extension of the simple ServletAction.
It it stored in the HttpServletRequest under "_action" attribute and provides access to the HttpServletRequest resources (params, attrs, ...)
and provides method that builds a XML tree for the data contained in the HttpServletRequest.
- See Also:
HttpServletRequest
,
HttpServletResponse
Method Summary |
java.lang.Object |
getHere(java.lang.String s)
Try to get a named parameter here.
|
javax.servlet.http.HttpServletRequest |
getRequest()
|
javax.servlet.http.HttpServletResponse |
getResponse()
|
javax.servlet.http.HttpSession |
getSession()
|
void |
put(java.lang.String s,
java.lang.Object o)
|
javax.servlet.ServletOutputStream |
servletOutputStream()
|
Methods inherited from class tomp.ext.Action |
event2tree, execute, get, getApplication, getPreviousAction, hasParameter, id, init, isERROR, isOK, result, setParameter, setResult, trace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestAction
protected RequestAction(ServletAction previous)
RequestAction
public RequestAction(ServletAction previous,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
servletOutputStream
public javax.servlet.ServletOutputStream servletOutputStream()
throws java.io.IOException
java.io.IOException
getHere
public java.lang.Object getHere(java.lang.String s)
- Description copied from class:
Action
- Try to get a named parameter here.
If the object is not stored here, returns null.
- Specified by:
getHere
in class Action
put
public void put(java.lang.String s,
java.lang.Object o)
- Specified by:
put
in class Action
getResponse
public javax.servlet.http.HttpServletResponse getResponse()
- Overrides:
getResponse
in class ServletAction
getSession
public javax.servlet.http.HttpSession getSession()
- Overrides:
getSession
in class ServletAction
getRequest
public javax.servlet.http.HttpServletRequest getRequest()
- Overrides:
getRequest
in class ServletAction