|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tomcat.core.BaseInterceptor
org.apache.tomcat.facade.JspInterceptor
Plug in the JSP engine (a.k.a Jasper)! Tomcat uses a "built-in" mapping for jsps ( *.jsp -> jsp ). "jsp" can be either a real servlet (JspServlet) that compiles the jsp and include the resource, or we can "intercept" and do the compilation and mapping in requestMap stage. JspInterceptor will be invoked once per jsp, and will add an exact mapping - all further invocation are identical with servlet invocations with direct maps, with no extra overhead. Future - better abstraction for jsp->java converter ( jasper ), better abstraction for java->class, plugin other jsp implementations, better scalability.
Field Summary |
Fields inherited from class org.apache.tomcat.core.BaseInterceptor |
cm, ct, ctx, debug, DECLINED, loghelper, OK |
Constructor Summary | |
JspInterceptor()
|
Method Summary | |
void |
addContext(ContextManager cm,
Context ctx)
Jasper-specific initializations, add work dir to classpath, |
void |
contextInit(Context ctx)
Do the needed initialization if jspServlet is used. |
int |
preInitCheck(Request req,
Handler sw)
Check if the JSP page needs to be re-compiled. |
void |
preServletInit(Context ctx,
Handler sw)
Set the HttpJspBase classloader before init, as required by Jasper |
int |
requestMap(Request req)
Detect if the request is for a JSP page and if it is find the associated servlet name and compile if needed. |
void |
setClassDebugInfo(java.lang.String s)
Include debug information in generated classes |
void |
setClassPath(java.lang.String s)
What classpath should I use while compiling the servlets generated from JSP files? |
void |
setIEClassId(java.lang.String s)
Class ID for use in the plugin tag when the browser is IE. |
void |
setJavaCompiler(java.lang.String type)
What compiler should I use to compile the servlets generated from JSP files? Default is "javac" ( you can use "jikes" as a shortcut ). |
void |
setJikesClasspath(java.lang.String cp)
|
void |
setJspCompilerPath(java.lang.String s)
Path of the compiler to use for compiling JSP pages. |
void |
setJspCompilerPlugin(java.lang.String s)
Deprecated. Use setJavaCompiler instead |
void |
setJspServlet(java.lang.String s)
Specify the implementation class of the jsp servlet. |
void |
setKeepGenerated(java.lang.String s)
Are we keeping generated code around? |
void |
setLargeFile(java.lang.String s)
Are we supporting large files? |
void |
setMappedFile(java.lang.String s)
Are we supporting HTML mapped servlets? |
void |
setPageContextPoolSize(int i)
Set the PageContext pool size for jasper factory. |
void |
setProperty(java.lang.String n,
java.lang.String v)
|
void |
setRuntimePackage(java.lang.String rp)
The generator will produce code using a different runtime ( default is org.apache.jasper.runtime ). |
void |
setScratchdir(java.lang.String s)
What is my scratch dir? |
void |
setSendErrToClient(java.lang.String s)
Should errors be sent to client or thrown into stderr? |
void |
setUseJspServlet(boolean b)
Use the old JspServlet to execute Jsps, instead of the new code. |
void |
setUseWebAppCL(boolean b)
Compile using the web application classloader. |
Methods inherited from class org.apache.tomcat.core.BaseInterceptor |
addContainer, addHandler, addInterceptor, addSecurityConstraint, afterBody, authenticate, authorize, beforeBody, beforeCommit, contextMap, contextShutdown, contextState, copyContext, engineInit, engineShutdown, engineStart, engineState, engineStop, findSession, getContext, getContextManager, getDebug, getInfo, getLog, getNote, getNote, handleError, log, log, log, log, postInitCheck, postReadRequest, postRequest, postService, postServletDestroy, postServletInit, preService, preServletDestroy, registerHooks, reload, removeContainer, removeContext, removeHandler, removeInterceptor, sessionState, setContext, setContextManager, setDebug, setInfo, setNote, setNote |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JspInterceptor()
Method Detail |
public void setKeepGenerated(java.lang.String s)
public void setLargeFile(java.lang.String s)
public void setMappedFile(java.lang.String s)
public void setSendErrToClient(java.lang.String s)
public void setIEClassId(java.lang.String s)
public void setClassPath(java.lang.String s)
public void setScratchdir(java.lang.String s)
public void setJspCompilerPath(java.lang.String s)
public void setJspCompilerPlugin(java.lang.String s)
public void setClassDebugInfo(java.lang.String s)
public void setProperty(java.lang.String n, java.lang.String v)
public void setJikesClasspath(java.lang.String cp)
public void setUseJspServlet(boolean b)
public void setJspServlet(java.lang.String s)
public void setJavaCompiler(java.lang.String type)
public void setPageContextPoolSize(int i)
public void setRuntimePackage(java.lang.String rp)
public void setUseWebAppCL(boolean b)
public void addContext(ContextManager cm, Context ctx) throws TomcatException
addContext
in class BaseInterceptor
TomcatException
public void contextInit(Context ctx) throws TomcatException
contextInit
in class BaseInterceptor
TomcatException
public void preServletInit(Context ctx, Handler sw) throws TomcatException
preServletInit
in class BaseInterceptor
TomcatException
public int requestMap(Request req)
requestMap
in class BaseInterceptor
public int preInitCheck(Request req, Handler sw) throws TomcatException
preInitCheck
in class BaseInterceptor
TomcatException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |