|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.request.AbstractRequest
org.apache.tiles.request.DispatchRequestWrapper
org.apache.tiles.request.AbstractViewRequest
org.apache.tiles.request.velocity.VelocityRequest
public class VelocityRequest
The implementation of the Tiles request context specific for Velocity.
Field Summary |
---|
Fields inherited from class org.apache.tiles.request.AbstractRequest |
---|
FORCE_INCLUDE_ATTRIBUTE_NAME |
Constructor Summary | |
---|---|
VelocityRequest(DispatchRequest enclosedRequest,
org.apache.velocity.context.Context ctx,
Writer writer)
Constructor. |
Method Summary | |
---|---|
static VelocityRequest |
createVelocityRequest(ApplicationContext applicationContext,
HttpServletRequest request,
HttpServletResponse response,
org.apache.velocity.context.Context velocityContext,
Writer writer)
Factory method to create a Velocity request. |
protected void |
doInclude(String path)
Includes the result. |
List<String> |
getAvailableScopes()
Returns all available scopes, that are the ones returned by #getNativeScopes() plus derivative scopes (e.g. |
Map<String,Object> |
getContext(String scope)
Returns a context map, given the scope name. |
Map<String,Object> |
getPageScope()
Returns the page scope. |
PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response. |
Writer |
getWriter()
Returns a writer to be used to write directly in the response. |
Methods inherited from class org.apache.tiles.request.AbstractViewRequest |
---|
dispatch, include |
Methods inherited from class org.apache.tiles.request.DispatchRequestWrapper |
---|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestLocale, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType |
Methods inherited from class org.apache.tiles.request.AbstractRequest |
---|
isForceInclude, setForceInclude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityRequest(DispatchRequest enclosedRequest, org.apache.velocity.context.Context ctx, Writer writer)
enclosedRequest
- The request that exposes non-Velocity specific propertiesctx
- The Velocity current context.writer
- The writer to use to render the response. It may be null, if not necessary.Method Detail |
---|
public static VelocityRequest createVelocityRequest(ApplicationContext applicationContext, HttpServletRequest request, HttpServletResponse response, org.apache.velocity.context.Context velocityContext, Writer writer)
applicationContext
- The application context.request
- The request.response
- The response.velocityContext
- The Velocity context.writer
- The writer to write into.
public List<String> getAvailableScopes()
DispatchRequestWrapper
#getNativeScopes()
plus derivative scopes (e.g. flash scope).
getAvailableScopes
in interface Request
getAvailableScopes
in class DispatchRequestWrapper
protected void doInclude(String path) throws IOException
doInclude
in class AbstractViewRequest
path
- The path whose result will be included.
IOException
- If something goes wrong.public PrintWriter getPrintWriter()
getPrintWriter
in interface Request
getPrintWriter
in class DispatchRequestWrapper
public Writer getWriter()
getWriter
in interface Request
getWriter
in class DispatchRequestWrapper
public Map<String,Object> getPageScope()
public Map<String,Object> getContext(String scope)
DispatchRequestWrapper
getContext
in interface Request
getContext
in class DispatchRequestWrapper
scope
- The name of the scope.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |