Package org.apache.wicket.request.cycle
Class RequestCycleContext
- java.lang.Object
-
- org.apache.wicket.request.cycle.RequestCycleContext
-
public final class RequestCycleContext extends Object
Represents the context for the request cycle. This class is mainly a grouping parameter for theRequestCycle
constructor. It is only necessary to future-proof the API by making sure method signatures do not change if further parameters are introduced at a later time.NOTE: Once a
RequestCycle
is instantiated using an instance of this class, the setters will have no further effect on the request cycle.- Author:
- igor.vaynberg
-
-
Constructor Summary
Constructors Constructor Description RequestCycleContext(Request request, Response response, IRequestMapper requestMapper, IExceptionMapper exceptionMapper)
Construct.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IExceptionMapper
getExceptionMapper()
Request
getRequest()
IRequestMapper
getRequestMapper()
Response
getResponse()
void
setExceptionMapper(IExceptionMapper exceptionMapper)
void
setRequest(Request request)
void
setRequestMapper(IRequestMapper requestMapper)
void
setResponse(Response response)
-
-
-
Constructor Detail
-
RequestCycleContext
public RequestCycleContext(Request request, Response response, IRequestMapper requestMapper, IExceptionMapper exceptionMapper)
Construct.- Parameters:
request
-response
-requestMapper
-exceptionMapper
-
-
-
Method Detail
-
getRequest
public Request getRequest()
- Returns:
- request
-
getResponse
public Response getResponse()
- Returns:
- response
-
getRequestMapper
public IRequestMapper getRequestMapper()
- Returns:
- requst mapper
-
getExceptionMapper
public IExceptionMapper getExceptionMapper()
- Returns:
- exception mapper
-
setRequest
public void setRequest(Request request)
- Parameters:
request
-
-
setResponse
public void setResponse(Response response)
- Parameters:
response
-
-
setRequestMapper
public void setRequestMapper(IRequestMapper requestMapper)
- Parameters:
requestMapper
-
-
setExceptionMapper
public void setExceptionMapper(IExceptionMapper exceptionMapper)
- Parameters:
exceptionMapper
-
-
-