public class FreeMarkerTilesRequestContext extends TilesRequestContextWrapper implements TilesRequestContext
| Constructor and Description |
|---|
FreeMarkerTilesRequestContext(TilesRequestContext enclosedRequest,
Environment env)
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 |
getRequest()
Get the underlying request.
|
java.util.Locale |
getRequestLocale()
Return the preferred Locale in which the client will accept content.
|
java.lang.Object[] |
getRequestObjects()
Returns the original request objects used to create this request.
|
java.lang.Object |
getResponse()
Get the underlying response.
|
java.io.Writer |
getWriter()
Returns a writer to be used to write directly in the response.
|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestScope, getSessionScope, getWrappedRequest, include, isResponseCommitted, isUserInRole, setContentTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestScope, getSessionScope, include, isResponseCommitted, isUserInRole, setContentTypepublic FreeMarkerTilesRequestContext(TilesRequestContext enclosedRequest, Environment env)
enclosedRequest - The request that exposes non-FreeMarker specific propertiesenv - The FreeMarker environment.public void dispatch(java.lang.String path)
throws java.io.IOException
dispatch in interface TilesRequestContextdispatch in class TilesRequestContextWrapperpath - The path to dispatch to.java.io.IOException - If something goes wrong during dispatching.public java.lang.Object getRequest()
getRequest in interface TilesRequestContextgetRequest in class TilesRequestContextWrapperpublic java.util.Locale getRequestLocale()
getRequestLocale in interface TilesRequestContextgetRequestLocale in class TilesRequestContextWrapperLocaleResolver to implement strategies to
resolve locales.public java.lang.Object getResponse()
getResponse in interface TilesRequestContextgetResponse in class TilesRequestContextWrapperpublic java.io.PrintWriter getPrintWriter()
throws java.io.IOException
getPrintWriter in interface TilesRequestContextgetPrintWriter in class TilesRequestContextWrapperjava.io.IOException - If something goes wrong when getting the print
writer.public java.io.Writer getWriter()
throws java.io.IOException
getWriter in interface TilesRequestContextgetWriter in class TilesRequestContextWrapperjava.io.IOException - If something goes wrong when getting the writer.public java.lang.Object[] getRequestObjects()
getRequestObjects in interface TilesRequestContextgetRequestObjects in class TilesRequestContextWrapper