public class CallStackHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SUPER_CALL
Key for a value determing wether a call frame contains a super call or not
|
| Constructor and Description |
|---|
CallStackHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
enterServlet(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This hook must be called each time a servlet service is entered.
|
static void |
enterSuperServlet(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This hook must be called each time a super servlet service is entered.
|
static javax.servlet.ServletContext |
getBaseServletContext()
Use this method for getting the context that should be used for
resolving a polymorphic servlet protocol call.
|
static javax.servlet.ServletContext |
getCurrentServletContext()
Use this method for getting the context that should be used for
resolving a servlet protocol call to a super servlet service.
|
static void |
leaveServlet()
This hook must be called each time a servlet service is left.
|
public static final String SUPER_CALL
public static void enterServlet(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
This method should never raise an exception, except when the parameters are not set!
javax.servlet.ServletException - if at least one of the parameters is nullpublic static void enterSuperServlet(javax.servlet.ServletContext context,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException
This method should never raise an exception, except when the parameters are not set!
javax.servlet.ServletException - if at least one of the parameters is nullpublic static void leaveServlet()
It's the counterpart to the enterServlet(javax.servlet.ServletContext, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) method.
public static javax.servlet.ServletContext getBaseServletContext()
public static javax.servlet.ServletContext getCurrentServletContext()
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.