|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.makumba.analyser.engine.TomcatJsp
public class TomcatJsp
This class is tomcat-specific because the available APIs do not expose this functionality. Given a servlet request, it allows to determine the URI of the currently executing JSP. This is needed for static page analysis. Adaptations will need to be made for other servlet containers. With simple modifications, the class can be made to act as a JSP servlet decorator.
Constructor Summary | |
---|---|
TomcatJsp()
|
Method Summary | |
---|---|
static String |
getContextCompiledJSPDir(ServletContext context)
Computes the path to the directory in which the compiled JSP is |
static String |
getFullCompiledJSPDir(ServletContext context)
Computes the directory where the compiled JSPs resides, which is for Tomact in <javax.servlet.context.tempdir>/org/apache/jsp |
static String |
getJspCompilerPackage()
|
static String |
getJspURI(HttpServletRequest request)
Computes the URI to the current JSP |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TomcatJsp()
Method Detail |
---|
public static String getJspURI(HttpServletRequest request)
request
- the Http request associated with the JSP
public static String getContextCompiledJSPDir(ServletContext context)
context
- the ServletContext of the running tomcat
public static String getFullCompiledJSPDir(ServletContext context)
public static String getJspCompilerPackage()
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |