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)
WebRequest
init
in interface WebRequest
request
- the HttpServletRequestresponse
- the HttpServletResponsesession
- the sessionObjectpublic RequestContext getRequestContext()
WebRequest
getRequestContext
in interface WebRequest
WebRequest.getRequestContext()
public ResponseContext getResponseContext()
WebRequest
getResponseContext
in interface WebRequest
WebRequest.getResponseContext()
public void exit(int exitCode)
WebRequest
exit
in interface WebRequest
WebRequest.exit(int)
Copyright © 2008–2017 Apache Software Foundation. All rights reserved.