com.atlassian.jira.web.bean
Class MockI18nTranslationMode
java.lang.Object
com.atlassian.jira.web.bean.MockI18nTranslationMode
- All Implemented Interfaces:
- I18nTranslationMode
public class MockI18nTranslationMode
- extends Object
- implements I18nTranslationMode
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockI18nTranslationMode
public MockI18nTranslationMode()
MockI18nTranslationMode
public MockI18nTranslationMode(boolean flag)
isTranslationMode
public boolean isTranslationMode()
- Specified by:
isTranslationMode
in interface I18nTranslationMode
- Returns:
- true if the I18n translations mode is on for this thread
setTranslationsModeOn
public void setTranslationsModeOn(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
- Description copied from interface:
I18nTranslationMode
- Attempts to turn on the i18n translations mode. JIRA may decide that its not sensible to turn it on
- Specified by:
setTranslationsModeOn
in interface I18nTranslationMode
- Parameters:
httpServletRequest
- the request in playhttpServletResponse
- the response in play
setTranslationsModeOff
public void setTranslationsModeOff()
- Description copied from interface:
I18nTranslationMode
- Turns off the i18n translations mode for this thread.
- Specified by:
setTranslationsModeOff
in interface I18nTranslationMode
Copyright © 2002-2014 Atlassian. All Rights Reserved.