public class VelocityTilesRequestContext extends TilesRequestContextWrapper
Constructor and Description |
---|
VelocityTilesRequestContext(TilesRequestContext enclosedRequest,
Context ctx,
java.io.Writer writer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispatch(java.lang.String path)
Dispatches the request to a specified path.
|
java.io.PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response.
|
java.lang.Object[] |
getRequestObjects()
Returns the original request objects used to create this request.
|
java.io.Writer |
getWriter()
Returns a writer to be used to write directly in the response.
|
void |
include(java.lang.String path)
Includes the response from the specified URL in the current response output.
|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getResponse, getSessionScope, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType
public VelocityTilesRequestContext(TilesRequestContext enclosedRequest, Context ctx, java.io.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 void dispatch(java.lang.String path) throws java.io.IOException
dispatch
in interface TilesRequestContext
dispatch
in class TilesRequestContextWrapper
path
- The path to dispatch to.java.io.IOException
- If something goes wrong during dispatching.public void include(java.lang.String path) throws java.io.IOException
include
in interface TilesRequestContext
include
in class TilesRequestContextWrapper
path
- The path to include.java.io.IOException
- If something goes wrong during inclusion.public java.io.PrintWriter getPrintWriter() throws java.io.IOException
getPrintWriter
in interface TilesRequestContext
getPrintWriter
in class TilesRequestContextWrapper
java.io.IOException
- If something goes wrong when getting the print
writer.public java.io.Writer getWriter() throws java.io.IOException
getWriter
in interface TilesRequestContext
getWriter
in class TilesRequestContextWrapper
java.io.IOException
- If something goes wrong when getting the writer.public java.lang.Object[] getRequestObjects()
getRequestObjects
in interface TilesRequestContext
getRequestObjects
in class TilesRequestContextWrapper