Class Overview
This will try to switch i18n translations mode on or off depending on whether the URL has a magic parameter OR the
session contains the magic attribute.
It will set it each time while these conditions are true and reverse the situation if the magic request parameter is
set to off
Summary
Public Methods |
void
|
switchTranslationsMode(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
This can be called to turn on translations mode or turn it off depending on the presence of the URL parameter.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
I18nTranslationModeSwitch
()
Public Methods
public
void
switchTranslationsMode
(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
This can be called to turn on translations mode or turn it off depending on the presence of the URL parameter.
Parameters
httpServletRequest
| the request in play |
httpServletResponse
| the response in play
|