public interface WebRequest
Modifier and Type | Field and Description |
---|---|
static String |
REQUEST_NAME
This String is the attribute name of this request object on the applications request scope
|
Modifier and Type | Method and Description |
---|---|
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
|
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
|
static final String REQUEST_NAME
boolean init(RequestContext request, ResponseContext response, Object session)
request
- the HttpServletRequestresponse
- the HttpServletResponsesession
- the sessionObjectRequestContext getRequestContext()
ResponseContext getResponseContext()
void exit(int exitCode)
exitCode
- Copyright © 2008–2018 Apache Software Foundation. All rights reserved.