|
||||||||||
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 TilesRequestContext
TilesRequestContext.getRequestLocale()
public void dispatch(String path) throws IOException
dispatch
in interface TilesRequestContext
IOException
public Map<String,String> getHeader()
getHeader
in interface TilesRequestContext
public OutputStream getOutputStream()
getOutputStream
in interface TilesRequestContext
public Writer getWriter()
getWriter
in interface TilesRequestContext
public PrintWriter getPrintWriter() throws IOException
getPrintWriter
in interface TilesRequestContext
IOException
public Map<String,String[]> getHeaderValues()
getHeaderValues
in interface TilesRequestContext
public Map<String,String> getParam()
getParam
in interface TilesRequestContext
public Map<String,String[]> getParamValues()
getParamValues
in interface TilesRequestContext
public Map<String,Object> getRequestScope()
getRequestScope
in interface TilesRequestContext
public Map<String,Object> getSessionScope()
getSessionScope
in interface TilesRequestContext
public TilesApplicationContext getApplicationContext()
getApplicationContext
in interface TilesRequestContext
public void include(String path) throws IOException
include
in interface TilesRequestContext
IOException
public boolean isUserInRole(String role)
isUserInRole
in interface TilesRequestContext
public Object[] getRequestObjects()
getRequestObjects
in interface TilesRequestContext
public Object getRequest()
getRequest
in interface TilesRequestContext
public Object getResponse()
getResponse
in interface TilesRequestContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |