| 
 | ||||||||||
| 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) | 
|  Map<String,String> | getHeader() | 
|  Map<String,String[]> | getHeaderValues() | 
|  Map<String,String> | getParam() | 
|  Map<String,String[]> | getParamValues() | 
|  Object | getRequest() | 
|  Locale | getRequestLocale()Returns the locale specified in the constructor. | 
|  Map<String,Object> | getRequestScope() | 
|  Object | getResponse() | 
|  Map<String,Object> | getSessionScope() | 
|  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 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 TilesRequestContext
public void include(String path)
             throws IOException
include in interface TilesRequestContextIOExceptionpublic boolean isUserInRole(String role)
isUserInRole 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 | |||||||||