public class DefaultWebRequest extends Object implements WebRequest
REQUEST_NAME| Constructor and Description |
|---|
DefaultWebRequest() |
| 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
|
public boolean init(RequestContext request, ResponseContext response, Object session)
WebRequestinit in interface WebRequestrequest - the HttpServletRequestresponse - the HttpServletResponsesession - the sessionObjectpublic RequestContext getRequestContext()
WebRequestgetRequestContext in interface WebRequestWebRequest.getRequestContext()public ResponseContext getResponseContext()
WebRequestgetResponseContext in interface WebRequestWebRequest.getResponseContext()public void exit(int exitCode)
WebRequestexit in interface WebRequestWebRequest.exit(int)Copyright © 2008–2022 Apache Software Foundation. All rights reserved.