Class ServletHelper


  • public class ServletHelper
    extends Object
    • Constructor Detail

      • ServletHelper

        public ServletHelper()
    • Method Detail

      • execAction

        public static final String execAction​(ContentContext ctx,
                                              String forceAction,
                                              boolean unsecure)
                                       throws Exception
        exec current action define in request
        Parameters:
        ctx -
        Returns:
        the name of the action.
        Throws:
        Exception
      • getSiteKey

        public static String getSiteKey​(javax.servlet.http.HttpServletRequest request)
      • executeThymeleaf

        public static final String executeThymeleaf​(javax.servlet.http.HttpServletRequest request,
                                                    javax.servlet.http.HttpServletResponse response,
                                                    String url)
                                             throws javax.servlet.ServletException,
                                                    IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • includeBlocked

        public static void includeBlocked​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
                                   throws javax.servlet.ServletException,
                                          IOException
        Throws:
        javax.servlet.ServletException
        IOException
      • getContextKey

        public static final String getContextKey​(URL url)
      • main

        public static void main​(String[] args)