Package example

Class JteContext


  • public class JteContext
    extends java.lang.Object
    Dummy jte context, how you might use it in your project. Contains helper methods for a JSP migration
    • Constructor Summary

      Constructors 
      Constructor Description
      JteContext()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEmpty​(java.lang.Object obj)
      Taken from org.apache.el.parser.AstEmpty implementation
      static gg.jte.Content localize​(java.lang.String key)
      Dummy localization method.
      static gg.jte.Content localize​(java.lang.String key, java.lang.Object... params)
      Dummy localization method.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JteContext

        public JteContext()
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(java.lang.Object obj)
        Taken from org.apache.el.parser.AstEmpty implementation
        Parameters:
        obj - the object to check for JSP like emptiness
      • localize

        public static gg.jte.Content localize​(java.lang.String key)
        Dummy localization method. Usually LocalizationSupport in a thread local will help you implement this method.
        Parameters:
        key - the localization key
        Returns:
        a localized content
      • localize

        public static gg.jte.Content localize​(java.lang.String key,
                                              java.lang.Object... params)
        Dummy localization method. Usually LocalizationSupport in a thread local will help you implement this method.
        Parameters:
        key - the localization key
        params - parameters for