Class ContextLanguageIsGuard

    • Constructor Detail

      • ContextLanguageIsGuard

        public ContextLanguageIsGuard()
    • Method Detail

      • isConditionFullfilled

        public boolean isConditionFullfilled​(net.anotheria.asg.data.DataObject object,
                                             jakarta.servlet.http.HttpServletRequest req)
                                      throws net.anotheria.asg.exception.ASGRuntimeException
        Description copied from interface: ConditionalGuard
        Returns true if the condition is fullfilled.
        Specified by:
        isConditionFullfilled in interface ConditionalGuard
        Parameters:
        object - TODO dummy comment for javadoc.
        req - TODO dummy comment for javadoc.
        Returns:
        TODO dummy comment for javadoc.
        Throws:
        net.anotheria.asg.exception.ASGRuntimeException - TODO dummy comment for javadoc.
      • getDesiredContextLanguage

        protected abstract String getDesiredContextLanguage()
        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.
        Returns:
        context language.