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_NAMEFields 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, setContentTypeMethods 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:DispatchRequestWrapperDispatches the request to a specified path.- Specified by:
dispatchin interfaceDispatchRequest- Overrides:
dispatchin classDispatchRequestWrapper- Parameters:
path- The path to dispatch to.- Throws:
IOException- If something goes wrong during dispatching.
-
include
Description copied from class:DispatchRequestWrapperIncludes the response from the specified URL in the current response output.- Specified by:
includein interfaceDispatchRequest- Overrides:
includein 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.
-