Class ContextLanguageIsEnglishGuard

  • All Implemented Interfaces:
    ConditionalGuard

    public class ContextLanguageIsEnglishGuard
    extends ContextLanguageIsGuard
    This guard is fulfilled if the current context language is set to EN.
    Author:
    lrosenberg
    • Constructor Detail

      • ContextLanguageIsEnglishGuard

        public ContextLanguageIsEnglishGuard()
    • Method Detail

      • getDesiredContextLanguage

        protected String getDesiredContextLanguage()
        Description copied from class: ContextLanguageIsGuard
        Returns 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:
        getDesiredContextLanguage in class ContextLanguageIsGuard
        Returns:
        context language.