Package net.anotheria.anosite.guard
Class ContextLanguageIsRussianGuard
- java.lang.Object
-
- net.anotheria.anosite.guard.ContextLanguageIsGuard
-
- net.anotheria.anosite.guard.ContextLanguageIsRussianGuard
-
- All Implemented Interfaces:
ConditionalGuard
public class ContextLanguageIsRussianGuard extends ContextLanguageIsGuard
This guard is fulfilled if the current context language is set to RU.- Author:
- lrosenberg
-
-
Constructor Summary
Constructors Constructor Description ContextLanguageIsRussianGuard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetDesiredContextLanguage()Returns the context language for this guard implementation to let pass.-
Methods inherited from class net.anotheria.anosite.guard.ContextLanguageIsGuard
isConditionFullfilled
-
-
-
-
Method Detail
-
getDesiredContextLanguage
protected String getDesiredContextLanguage()
Description copied from class:ContextLanguageIsGuardReturns the context language for this guard implementation to let pass. Remember the return value of this function must MATCH EXACTLY what you've written in the context.xml.- Specified by:
getDesiredContextLanguagein classContextLanguageIsGuard- Returns:
- context language.
-
-