public class MockI18nTranslationMode extends Object implements I18nTranslationMode
Constructor and Description |
---|
MockI18nTranslationMode() |
MockI18nTranslationMode(boolean flag) |
Modifier and Type | Method and Description |
---|---|
boolean |
isTranslationMode() |
MockI18nTranslationMode |
setTranslationMode(boolean mode) |
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 MockI18nTranslationMode()
public MockI18nTranslationMode(boolean flag)
public boolean isTranslationMode()
isTranslationMode
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 playpublic void setTranslationsModeOff()
I18nTranslationMode
setTranslationsModeOff
in interface I18nTranslationMode
public MockI18nTranslationMode setTranslationMode(boolean mode)
Copyright © 2002-2022 Atlassian. All Rights Reserved.