jrun.jsp
Class JSPEngine

java.lang.Object
  |
  +--jrun.jsp.JSPEngine

public final class JSPEngine
extends java.lang.Object

There is one JSPEngine per web application.


Field Summary
static java.lang.String JSP_STL_URI
           
 
Method Summary
 void deletePageState(java.lang.String pagePath)
           
 void destroy()
           
 java.lang.String getBasePath(java.lang.String className)
           
 JavaCompiler getJavaCompiler()
           
 java.lang.String[] getJSTSuffixes()
           
 java.lang.String getOutputDir()
           
 PageState getPageState(java.lang.String pagePath)
           
 javax.servlet.ServletContext getServletContext()
           
 javax.servlet.jsp.tagext.TagLibraryInfo getStandardTagLibrary()
           
 javax.servlet.jsp.tagext.TagLibraryInfo getTagLibraryInfo(java.lang.String uri, java.lang.String pagePath)
          This will either find a TagLibraryInfo object corresponding to this URI or try to create a new one.
 boolean isCacheTags()
           
 boolean isKeepGenerated()
           
 java.lang.Class loadClass(java.lang.String pagePath)
           
 java.lang.Class loadClass(java.lang.String pagePath, java.lang.String className)
           
 java.lang.String resolveTagLibraryURI(java.lang.String uri, java.lang.String pagePath)
          Given a pagePath for a jsp page and a uri calculate the TLD_URI (see JSP 1.1 errata for a definition)
 void setCacheTags(boolean cacheTags)
           
 void setKeepGenerated(boolean keepGenerated)
           
 void setOutputDir(java.lang.String outputDir)
           
 void setTranslationDisabled(boolean translationDisabled)
           
 boolean translateJST(java.lang.String pagePath, JSTTagLibraryInfo tli)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JSP_STL_URI

public static final java.lang.String JSP_STL_URI
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()

getJavaCompiler

public JavaCompiler getJavaCompiler()

setTranslationDisabled

public void setTranslationDisabled(boolean translationDisabled)

isKeepGenerated

public boolean isKeepGenerated()

setKeepGenerated

public void setKeepGenerated(boolean keepGenerated)

isCacheTags

public boolean isCacheTags()

setCacheTags

public void setCacheTags(boolean cacheTags)

setOutputDir

public void setOutputDir(java.lang.String outputDir)
                  throws javax.servlet.ServletException

getJSTSuffixes

public java.lang.String[] getJSTSuffixes()

getBasePath

public java.lang.String getBasePath(java.lang.String className)

getOutputDir

public java.lang.String getOutputDir()

deletePageState

public void deletePageState(java.lang.String pagePath)

getPageState

public PageState getPageState(java.lang.String pagePath)
                       throws java.io.IOException

getStandardTagLibrary

public javax.servlet.jsp.tagext.TagLibraryInfo getStandardTagLibrary()

getTagLibraryInfo

public javax.servlet.jsp.tagext.TagLibraryInfo getTagLibraryInfo(java.lang.String uri,
                                                                 java.lang.String pagePath)
                                                          throws TagLibraryException
This will either find a TagLibraryInfo object corresponding to this URI or try to create a new one. If no tag library could be found it returns null. A tag library doesn't exist if no TLD could be found and the uri doesn't resolve to a directory or jar (which can contain JSTs where there might not be a tld)
Parameters:
uri - The uri used on the page.
pagePath - The page using that uri.
Returns:
Null if it wasn't found

resolveTagLibraryURI

public java.lang.String resolveTagLibraryURI(java.lang.String uri,
                                             java.lang.String pagePath)
Given a pagePath for a jsp page and a uri calculate the TLD_URI (see JSP 1.1 errata for a definition)
Parameters:
uri - The uri used on the page
pagePath - the path of the page, used to resolving relative uris

translateJST

public boolean translateJST(java.lang.String pagePath,
                            JSTTagLibraryInfo tli)
                     throws javax.servlet.ServletException,
                            java.io.IOException

loadClass

public java.lang.Class loadClass(java.lang.String pagePath)
                          throws java.lang.ClassNotFoundException

loadClass

public java.lang.Class loadClass(java.lang.String pagePath,
                                 java.lang.String className)
                          throws java.lang.ClassNotFoundException

destroy

public void destroy()


Copyright � 2002 Macromedia Corporation. All Rights Reserved.