Package org.javlo.helper
Class ServletHelper
- java.lang.Object
-
- org.javlo.helper.ServletHelper
-
public class ServletHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description ServletHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
execAction(ContentContext ctx, String forceAction, boolean unsecure)
exec current action define in requeststatic String
executeJSP(ContentContext ctx, String url)
static String
executeThymeleaf(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)
static String
getContextKey(URL url)
static String
getSiteKey(javax.servlet.http.HttpServletRequest request)
static void
includeBlocked(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
static void
main(String[] args)
static void
prepareModule(ContentContext ctx)
-
-
-
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
-
prepareModule
public static final void prepareModule(ContentContext ctx) throws Exception
- Throws:
Exception
-
getSiteKey
public static String getSiteKey(javax.servlet.http.HttpServletRequest request)
-
executeJSP
public static final String executeJSP(ContentContext ctx, String url) throws javax.servlet.ServletException, IOException
- Throws:
javax.servlet.ServletException
IOException
-
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
-
main
public static void main(String[] args)
-
-