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()
public boolean isTranslationMode()
isTranslationMode
in interface I18nTranslationMode
public void setTranslationsModeOff()
I18nTranslationMode
setTranslationsModeOff
in interface I18nTranslationMode
public void setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
I18nTranslationMode
setTranslationsModeOn
in interface I18nTranslationMode
httpServletRequest
- the request in playhttpServletResponse
- the response in playCopyright © 2002-2015 Atlassian. All Rights Reserved.