org.apache.empire.struts2.web
Interface WebRequest

All Known Implementing Classes:
DefaultWebRequest

public interface WebRequest


Field Summary
static java.lang.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.
 javax.servlet.http.HttpServletRequest getHttpRequest()
          returns the current HttpRequestObject
 javax.servlet.http.HttpServletResponse getHttpResponse()
          returns the current HttpResponseObject
 boolean init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object session)
          Initializes the request object This method is called from the EmpiretrutsDispatcher
 

Field Detail

REQUEST_NAME

static final java.lang.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(javax.servlet.http.HttpServletRequest request,
             javax.servlet.http.HttpServletResponse response,
             java.lang.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

getHttpRequest

javax.servlet.http.HttpServletRequest getHttpRequest()
returns the current HttpRequestObject

Returns:
the httpServletRequest

getHttpResponse

javax.servlet.http.HttpServletResponse getHttpResponse()
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-2010 Apache Software Foundation. All Rights Reserved.