public class VelocityRequest extends AbstractViewRequest
FORCE_INCLUDE_ATTRIBUTE_NAMEAPPLICATION_SCOPE, REQUEST_SCOPE| Constructor and Description | 
|---|
| VelocityRequest(DispatchRequest enclosedRequest,
               org.apache.velocity.context.Context ctx,
               Writer writer)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static VelocityRequest | createVelocityRequest(ApplicationContext applicationContext,
                     javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.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. | 
| 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. | 
dispatch, includegetApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestLocale, getResponseHeaders, getWrappedRequest, isResponseCommitted, isUserInRole, setContentTypeisForceInclude, setForceIncludepublic 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.public static VelocityRequest createVelocityRequest(ApplicationContext applicationContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.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()
DispatchRequestWrappergetAvailableScopes in interface RequestgetAvailableScopes in class DispatchRequestWrapperprotected void doInclude(String path) throws IOException
doInclude in class AbstractViewRequestpath - The path whose result will be included.IOException - If something goes wrong.public PrintWriter getPrintWriter()
getPrintWriter in interface RequestgetPrintWriter in class DispatchRequestWrapperpublic Writer getWriter()
getWriter in interface RequestgetWriter in class DispatchRequestWrapperpublic Map<String,Object> getPageScope()
public Map<String,Object> getContext(String scope)
DispatchRequestWrappergetContext in interface RequestgetContext in class DispatchRequestWrapperscope - The name of the scope.Copyright © 2000–2025 Apache Software Foundation. All rights reserved.