org.apache.empire.struts2.web
Interface WebRequest

All Known Implementing Classes:
DefaultWebRequest

public interface WebRequest


Field Summary
static String REQUEST_NAME
          This String is the attribute name of this request object on the applications request scope
 
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
 

Field Detail

REQUEST_NAME

static final String REQUEST_NAME
This String is the attribute name of this request object on the applications request scope

See Also:
Constant Field Values
Method Detail

init

boolean init(RequestContext request,
             ResponseContext response,
             Object session)
Initializes the request object This method is called from the EmpiretrutsDispatcher

Parameters:
request - the HttpServletRequest
response - the HttpServletResponse
session - the sessionObject
Returns:
true if the request should continue processing or false otherwise

getRequestContext

RequestContext getRequestContext()
returns the current HttpRequestObject

Returns:
the httpServletRequest

getResponseContext

ResponseContext getResponseContext()
returns the current HttpResponseObject

Returns:
the httpServletResponse

exit

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. to commit or rollback a transaction on the JDBC-Connection

Parameters:
exitCode -


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.