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 StringexecAction(ContentContext ctx, String forceAction, boolean unsecure)exec current action define in requeststatic StringexecuteJSP(ContentContext ctx, String url)static StringexecuteThymeleaf(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String url)static StringgetContextKey(URL url)static StringgetSiteKey(javax.servlet.http.HttpServletRequest request)static voidincludeBlocked(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)static voidmain(String[] args)static voidprepareModule(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.ServletExceptionIOException
-
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.ServletExceptionIOException
-
includeBlocked
public static void includeBlocked(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Throws:
javax.servlet.ServletExceptionIOException
-
main
public static void main(String[] args)
-
-