org.apache.jasper
クラス CommandLineContext

java.lang.Object
  |
  +--org.apache.jasper.CommandLineContext
すべての実装インタフェース:
JspCompilationContext

public class CommandLineContext
extends java.lang.Object
implements JspCompilationContext

Holds data used on a per-page compilation context that would otherwise spill over to other pages being compiled. Things like the taglib classloaders and directives.

作成者:
Danno Ferrin, Pierre Delisle

クラス org.apache.jasper.JspCompilationContext から継承した内部クラス
JspCompilationContext.Interface1
 
コンストラクタの概要
CommandLineContext(java.lang.String newClassPath, java.lang.String newJspFile, java.lang.String newUriBase, java.lang.String newUriRoot, boolean newErrPage, Options newOptions)
           
 
メソッドの概要
 Compiler createCompiler()
          Create a "Compiler" object based on some init param data.
 java.lang.ClassLoader getClassLoader()
          What class loader to use for loading classes while compiling this JSP?
 java.lang.String getClassPath()
          The classpath that is passed off to the Java compiler.
 java.lang.String getContentType()
          The content type of this JSP.
 java.lang.String getJavacOutputDir()
          The scratch directory to generate code into for javac.
 java.lang.String getJspFile()
          Path of the JSP URI.
 Options getOptions()
          Get hold of the Options object for this context.
 java.lang.String getOutputDir()
          The scratch directory to generate code into.
 JspReader getReader()
          Get the input reader for the JSP text.
 java.lang.String getRealPath(java.lang.String path)
          Gets the actual path of a URI relative to the context of the compilation.
 java.net.URL getResource(java.lang.String res)
           
 java.io.InputStream getResourceAsStream(java.lang.String res)
          Gets a resource as a stream, relative to the meanings of this context's implementation.
 java.lang.String getServletClassName()
          Just the class name (does not include package name) of the generated class.
 java.lang.String getServletJavaFileName()
          Full path name of the Java file into which the servlet is being generated.
 java.lang.String getServletPackageName()
          The package name for the generated class.
 java.lang.String[] getTldLocation(java.lang.String uri)
          Get the 'location' of the TLD associated with a given taglib 'uri'.
 ServletWriter getWriter()
          Where is the servlet being generated?
 boolean isErrorPage()
          Are we processing something that has been declared as an errorpage?
 boolean isOutputInDirs()
           
 boolean keepGenerated()
          Are we keeping generated code around?
 java.lang.String resolveRelativeUri(java.lang.String uri)
          Get the full value of a URI relative to this compilations context uses current file as the base.
 void setClassLoader(java.net.URLClassLoader loader)
           
 void setContentType(java.lang.String contentType)
           
 void setErrorPage(boolean isErrPage)
           
 void setOutputInDirs(boolean newValue)
           
 void setReader(JspReader reader)
           
 void setServletClassName(java.lang.String servletClassName)
           
 void setServletJavaFileName(java.lang.String servletJavaFileName)
           
 void setServletPackageName(java.lang.String servletPackageName)
           
 void setWriter(ServletWriter writer)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CommandLineContext

public CommandLineContext(java.lang.String newClassPath,
                          java.lang.String newJspFile,
                          java.lang.String newUriBase,
                          java.lang.String newUriRoot,
                          boolean newErrPage,
                          Options newOptions)
                   throws JasperException
メソッドの詳細

getClassPath

public java.lang.String getClassPath()
The classpath that is passed off to the Java compiler.
定義:
インタフェース JspCompilationContext 内の getClassPath

getReader

public JspReader getReader()
Get the input reader for the JSP text.
定義:
インタフェース JspCompilationContext 内の getReader

getWriter

public ServletWriter getWriter()
Where is the servlet being generated?
定義:
インタフェース JspCompilationContext 内の getWriter

getClassLoader

public java.lang.ClassLoader getClassLoader()
What class loader to use for loading classes while compiling this JSP?
定義:
インタフェース JspCompilationContext 内の getClassLoader

isErrorPage

public boolean isErrorPage()
Are we processing something that has been declared as an errorpage?
定義:
インタフェース JspCompilationContext 内の isErrorPage

getOutputDir

public java.lang.String getOutputDir()
The scratch directory to generate code into. FIXME: In some places this is called scratchDir and in some other places it is called outputDir.
定義:
インタフェース JspCompilationContext 内の getOutputDir

getJavacOutputDir

public java.lang.String getJavacOutputDir()
The scratch directory to generate code into for javac. FIXME: In some places this is called scratchDir and in some other places it is called outputDir.
定義:
インタフェース JspCompilationContext 内の getJavacOutputDir

getJspFile

public java.lang.String getJspFile()
Path of the JSP URI. Note that this is not a file name. This is the context rooted URI of the JSP file.
定義:
インタフェース JspCompilationContext 内の getJspFile

getServletClassName

public java.lang.String getServletClassName()
Just the class name (does not include package name) of the generated class.
定義:
インタフェース JspCompilationContext 内の getServletClassName

getServletPackageName

public java.lang.String getServletPackageName()
The package name for the generated class. The final package is assembled from the one specified in -p, and the one derived from the path to jsp file.
定義:
インタフェース JspCompilationContext 内の getServletPackageName

getServletJavaFileName

public java.lang.String getServletJavaFileName()
Full path name of the Java file into which the servlet is being generated.
定義:
インタフェース JspCompilationContext 内の getServletJavaFileName

keepGenerated

public boolean keepGenerated()
Are we keeping generated code around?
定義:
インタフェース JspCompilationContext 内の keepGenerated

getContentType

public java.lang.String getContentType()
The content type of this JSP. Content type includes content type and encoding.
定義:
インタフェース JspCompilationContext 内の getContentType

getOptions

public Options getOptions()
Get hold of the Options object for this context.
定義:
インタフェース JspCompilationContext 内の getOptions

setClassLoader

public void setClassLoader(java.net.URLClassLoader loader)

setContentType

public void setContentType(java.lang.String contentType)
定義:
インタフェース JspCompilationContext 内の setContentType

setReader

public void setReader(JspReader reader)
定義:
インタフェース JspCompilationContext 内の setReader

setWriter

public void setWriter(ServletWriter writer)
定義:
インタフェース JspCompilationContext 内の setWriter

setServletClassName

public void setServletClassName(java.lang.String servletClassName)
定義:
インタフェース JspCompilationContext 内の setServletClassName

setServletPackageName

public void setServletPackageName(java.lang.String servletPackageName)
定義:
インタフェース JspCompilationContext 内の setServletPackageName

setServletJavaFileName

public void setServletJavaFileName(java.lang.String servletJavaFileName)
定義:
インタフェース JspCompilationContext 内の setServletJavaFileName

setErrorPage

public void setErrorPage(boolean isErrPage)
定義:
インタフェース JspCompilationContext 内の setErrorPage

setOutputInDirs

public void setOutputInDirs(boolean newValue)

isOutputInDirs

public boolean isOutputInDirs()

createCompiler

public Compiler createCompiler()
                        throws JasperException
Create a "Compiler" object based on some init param data. This is not done yet. Right now we're just hardcoding the actual compilers that are created.
定義:
インタフェース JspCompilationContext 内の createCompiler

resolveRelativeUri

public java.lang.String resolveRelativeUri(java.lang.String uri)
Get the full value of a URI relative to this compilations context uses current file as the base.
定義:
インタフェース JspCompilationContext 内の resolveRelativeUri

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String res)
Gets a resource as a stream, relative to the meanings of this context's implementation.
定義:
インタフェース JspCompilationContext 内の getResourceAsStream
戻り値:
a null if the resource cannot be found or represented as an InputStream.

getResource

public java.net.URL getResource(java.lang.String res)
                         throws java.net.MalformedURLException
定義:
インタフェース JspCompilationContext 内の getResource

getRealPath

public java.lang.String getRealPath(java.lang.String path)
Gets the actual path of a URI relative to the context of the compilation.
定義:
インタフェース JspCompilationContext 内の getRealPath

getTldLocation

public java.lang.String[] getTldLocation(java.lang.String uri)
                                  throws JasperException
インタフェース JspCompilationContext の記述:
Get the 'location' of the TLD associated with a given taglib 'uri'.
定義:
インタフェース JspCompilationContext 内の getTldLocation
インタフェース org.apache.jasper.JspCompilationContext からコピーされたタグ:
戻り値:
An array of two Strings. The first one is real path to the TLD. If the path to the TLD points to a jar file, then the second string is the name of the entry for the TLD in the jar file. Returns null if the uri is not associated to a tag library 'exposed' in the web application. A tag library is 'exposed' either explicitely in web.xml or implicitely via the uri tag in the TLD of a taglib deployed in a jar file (WEB-INF/lib).


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.