|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.context.TilesRequestContextWrapper
org.apache.tiles.freemarker.context.FreeMarkerTilesRequestContext
public class FreeMarkerTilesRequestContext
The FreeMarker-specific request context.
| Constructor Summary | |
|---|---|
FreeMarkerTilesRequestContext(TilesRequestContext enclosedRequest,
Environment env)
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 |
getRequest()
Get the underlying request. |
Locale |
getRequestLocale()
Return the preferred Locale in which the client will accept content. |
Object[] |
getRequestObjects()
Returns the original request objects used to create this request. |
Object |
getResponse()
Get the underlying response. |
Writer |
getWriter()
Returns a writer to be used to write directly in the response. |
| Methods inherited from class org.apache.tiles.context.TilesRequestContextWrapper |
|---|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestScope, getSessionScope, getWrappedRequest, include, isResponseCommitted, isUserInRole, setContentType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tiles.context.TilesRequestContext |
|---|
getApplicationContext, getHeader, getHeaderValues, getOutputStream, getParam, getParamValues, getRequestScope, getSessionScope, include, isResponseCommitted, isUserInRole, setContentType |
| Constructor Detail |
|---|
public FreeMarkerTilesRequestContext(TilesRequestContext enclosedRequest,
Environment env)
enclosedRequest - The request that exposes non-FreeMarker specific propertiesenv - The FreeMarker environment.| Method Detail |
|---|
public void dispatch(String path)
throws IOException
dispatch in interface TilesRequestContextdispatch in class TilesRequestContextWrapperpath - The path to dispatch to.
IOException - If something goes wrong during dispatching.public Object getRequest()
getRequest in interface TilesRequestContextgetRequest in class TilesRequestContextWrapperpublic Locale getRequestLocale()
getRequestLocale in interface TilesRequestContextgetRequestLocale in class TilesRequestContextWrapperLocaleResolver to implement strategies to
resolve locales.public Object getResponse()
getResponse in interface TilesRequestContextgetResponse in class TilesRequestContextWrapper
public PrintWriter getPrintWriter()
throws IOException
getPrintWriter in interface TilesRequestContextgetPrintWriter in class TilesRequestContextWrapperIOException - If something goes wrong when getting the print
writer.
public Writer getWriter()
throws IOException
getWriter in interface TilesRequestContextgetWriter in class TilesRequestContextWrapperIOException - If something goes wrong when getting the writer.public Object[] getRequestObjects()
getRequestObjects in interface TilesRequestContextgetRequestObjects in class TilesRequestContextWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||