public class I18nTranslationModeImpl extends Object implements I18nTranslationMode
| Constructor and Description |
|---|
I18nTranslationModeImpl()
This uses a ThreadLocal under the covers so we don't care how many instances of us there are.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTranslationMode() |
void |
setTranslationsModeOff()
Turns off the i18n translations mode for this thread.
|
void |
setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
Attempts to turn on the i18n translations mode.
|
public I18nTranslationModeImpl()
We always set the thread local value to false on instantiation.
public boolean isTranslationMode()
isTranslationMode in interface I18nTranslationModepublic void setTranslationsModeOff()
I18nTranslationModesetTranslationsModeOff in interface I18nTranslationModepublic void setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
I18nTranslationModesetTranslationsModeOn in interface I18nTranslationModehttpServletRequest - the request in playhttpServletResponse - the response in playCopyright © 2002-2018 Atlassian. All Rights Reserved.