|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.context.TilesRequestContextWrapper org.apache.tiles.velocity.context.VelocityTilesRequestContext
public class VelocityTilesRequestContext
The implementation of the Tiles request context specific for Velocity.
Constructor Summary | |
---|---|
VelocityTilesRequestContext(TilesRequestContext enclosedRequest,
org.apache.velocity.context.Context ctx,
Writer writer)
Constructor. |
Method Summary | |
---|---|
void |
dispatch(String path)
Dispatches the request to a specified path. |
PrintWriter |
getPrintWriter()
Returns a print writer to be used to write directly in the response. |
Object[] |
getRequestObjects()
Returns the original request objects used to create this request. |
Writer |
getWriter()
Returns a writer to be used to write directly in the response. |
void |
include(String path)
Includes the response from the specified URL in the current response output. |
Methods inherited from class org.apache.tiles.context.TilesRequestContextWrapper |
---|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequest, getRequestLocale, getRequestScope, getResponse, getSessionScope, getWrappedRequest, isResponseCommitted, isUserInRole, setContentType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VelocityTilesRequestContext(TilesRequestContext 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 void dispatch(String path) throws IOException
dispatch
in interface TilesRequestContext
dispatch
in class TilesRequestContextWrapper
path
- The path to dispatch to.
IOException
- If something goes wrong during dispatching.public void include(String path) throws IOException
include
in interface TilesRequestContext
include
in class TilesRequestContextWrapper
path
- The path to include.
IOException
- If something goes wrong during inclusion.public PrintWriter getPrintWriter() throws IOException
getPrintWriter
in interface TilesRequestContext
getPrintWriter
in class TilesRequestContextWrapper
IOException
- If something goes wrong when getting the print
writer.public Writer getWriter() throws IOException
getWriter
in interface TilesRequestContext
getWriter
in class TilesRequestContextWrapper
IOException
- If something goes wrong when getting the writer.public Object[] getRequestObjects()
getRequestObjects
in interface TilesRequestContext
getRequestObjects
in class TilesRequestContextWrapper
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |