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

java.lang.Objectorg.apache.tiles.definition.MockOnlyLocaleTilesContext
public class MockOnlyLocaleTilesContext
Creates a TilesApplicationContext that contains only a Locale.
| Constructor Summary | |
|---|---|
MockOnlyLocaleTilesContext(Locale locale)
Creates a new instance of MockOnlyLocaleTilesContext. |
|
| Method Summary | |
|---|---|
void |
dispatch(String path)
|
TilesApplicationContext |
getApplicationContext()
|
Map<String,String> |
getHeader()
|
Map<String,String[]> |
getHeaderValues()
|
OutputStream |
getOutputStream()
|
Map<String,String> |
getParam()
|
Map<String,String[]> |
getParamValues()
|
PrintWriter |
getPrintWriter()
|
Object |
getRequest()
|
Locale |
getRequestLocale()
Returns the locale specified in the constructor. |
Object[] |
getRequestObjects()
|
Map<String,Object> |
getRequestScope()
|
Object |
getResponse()
|
Map<String,Object> |
getSessionScope()
|
Writer |
getWriter()
|
void |
include(String path)
|
boolean |
isUserInRole(String role)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MockOnlyLocaleTilesContext(Locale locale)
locale - The locale object to use.| Method Detail |
|---|
public Locale getRequestLocale()
getRequestLocale in interface TilesRequestContextTilesRequestContext.getRequestLocale()
public void dispatch(String path)
throws IOException
dispatch in interface TilesRequestContextIOExceptionpublic Map<String,String> getHeader()
getHeader in interface TilesRequestContextpublic OutputStream getOutputStream()
getOutputStream in interface TilesRequestContextpublic Writer getWriter()
getWriter in interface TilesRequestContext
public PrintWriter getPrintWriter()
throws IOException
getPrintWriter in interface TilesRequestContextIOExceptionpublic Map<String,String[]> getHeaderValues()
getHeaderValues in interface TilesRequestContextpublic Map<String,String> getParam()
getParam in interface TilesRequestContextpublic Map<String,String[]> getParamValues()
getParamValues in interface TilesRequestContextpublic Map<String,Object> getRequestScope()
getRequestScope in interface TilesRequestContextpublic Map<String,Object> getSessionScope()
getSessionScope in interface TilesRequestContextpublic TilesApplicationContext getApplicationContext()
getApplicationContext in interface TilesRequestContext
public void include(String path)
throws IOException
include in interface TilesRequestContextIOExceptionpublic boolean isUserInRole(String role)
isUserInRole in interface TilesRequestContextpublic Object[] getRequestObjects()
getRequestObjects in interface TilesRequestContextpublic Object getRequest()
getRequest in interface TilesRequestContextpublic Object getResponse()
getResponse in interface TilesRequestContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||