org.apache.empire.struts2.web
Class DefaultWebRequest

java.lang.Object
  extended by org.apache.empire.struts2.web.DefaultWebRequest
All Implemented Interfaces:
WebRequest

public class DefaultWebRequest
extends Object
implements WebRequest


Field Summary
 
Fields inherited from interface org.apache.empire.struts2.web.WebRequest
REQUEST_NAME
 
Constructor Summary
DefaultWebRequest()
           
 
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
 

Constructor Detail

DefaultWebRequest

public DefaultWebRequest()
Method Detail

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 HttpServletRequest
response - the HttpServletResponse
session - 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#getHttpRequest()

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#getHttpResponse()

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-2012 Apache Software Foundation. All Rights Reserved.