Package org.apache.tiles.request
Class AbstractViewRequest
java.lang.Object
org.apache.tiles.request.AbstractRequest
org.apache.tiles.request.DispatchRequestWrapper
org.apache.tiles.request.AbstractViewRequest
- All Implemented Interfaces:
DispatchRequest
,Request
,RequestWrapper
- Direct Known Subclasses:
FreemarkerRequest
,JspRequest
,VelocityRequest
Base class for "view" requests, i.e. requests created into view technologies,
such as JSP, Velocity and Freemarker. In particular, all calls to
dispatch(String)
will cause an inclusion and never a forward.-
Field Summary
Fields inherited from class org.apache.tiles.request.AbstractRequest
FORCE_INCLUDE_ATTRIBUTE_NAME
Fields inherited from interface org.apache.tiles.request.Request
APPLICATION_SCOPE, REQUEST_SCOPE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.tiles.request.DispatchRequestWrapper
getApplicationContext, getAvailableScopes, getContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getPrintWriter, getRequestLocale, getResponseHeaders, getWrappedRequest, getWriter, isResponseCommitted, isUserInRole, setContentType
Methods inherited from class org.apache.tiles.request.AbstractRequest
isForceInclude, setForceInclude
-
Constructor Details
-
AbstractViewRequest
Constructor.- Parameters:
request
- The base request.
-
-
Method Details
-
dispatch
Description copied from class:DispatchRequestWrapper
Dispatches the request to a specified path.- Specified by:
dispatch
in interfaceDispatchRequest
- Overrides:
dispatch
in classDispatchRequestWrapper
- Parameters:
path
- The path to dispatch to.- Throws:
IOException
- If something goes wrong during dispatching.
-
include
Description copied from class:DispatchRequestWrapper
Includes the response from the specified URL in the current response output.- Specified by:
include
in interfaceDispatchRequest
- Overrides:
include
in classDispatchRequestWrapper
- Parameters:
path
- The path to include.- Throws:
IOException
- If something goes wrong during inclusion.
-
doInclude
Includes the result. By default, uses the wrapped request for the inclusion.- Parameters:
path
- The path whose result will be included.- Throws:
IOException
- If something goes wrong.
-