org.apache.empire.struts2.web
Class DefaultWebRequest
java.lang.Object
org.apache.empire.struts2.web.DefaultWebRequest
- All Implemented Interfaces:
- WebRequest
public class DefaultWebRequest
- extends Object
- implements WebRequest
Method Summary |
void |
exit(int exitCode)
This function is called from the EmpireStrutsDispatcher when a request ends
if an action was accociated with the request and the action implements the Disposible interface
then the exit code returned by Disposible.dispose() is passed with the exitCode parameter
You might use the exitCode e.g. |
RequestContext |
getRequestContext()
returns the current HttpRequestObject |
ResponseContext |
getResponseContext()
returns the current HttpResponseObject |
boolean |
init(RequestContext request,
ResponseContext response,
Object session)
Initializes the request object
This method is called from the EmpiretrutsDispatcher |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultWebRequest
public DefaultWebRequest()
init
public boolean init(RequestContext request,
ResponseContext response,
Object session)
- Description copied from interface:
WebRequest
- Initializes the request object
This method is called from the EmpiretrutsDispatcher
- Specified by:
init
in interface WebRequest
- Parameters:
request
- the HttpServletRequestresponse
- the HttpServletResponsesession
- the sessionObject
- Returns:
- true if the request should continue processing or false otherwise
getRequestContext
public RequestContext getRequestContext()
- Description copied from interface:
WebRequest
- returns the current HttpRequestObject
- Specified by:
getRequestContext
in interface WebRequest
- Returns:
- the httpServletRequest
- See Also:
WebRequest.getRequestContext()
getResponseContext
public ResponseContext getResponseContext()
- Description copied from interface:
WebRequest
- returns the current HttpResponseObject
- Specified by:
getResponseContext
in interface WebRequest
- Returns:
- the httpServletResponse
- See Also:
WebRequest.getResponseContext()
exit
public void exit(int exitCode)
- Description copied from interface:
WebRequest
- This function is called from the EmpireStrutsDispatcher when a request ends
if an action was accociated with the request and the action implements the Disposible interface
then the exit code returned by Disposible.dispose() is passed with the exitCode parameter
You might use the exitCode e.g. to commit or rollback a transaction on the JDBC-Connection
- Specified by:
exit
in interface WebRequest
- See Also:
WebRequest.exit(int)
Copyright © 2008–2014 Apache Software Foundation. All rights reserved.