Class EmbeddedServletOptions
java.lang.Object
org.apache.jasper.EmbeddedServletOptions
- All Implemented Interfaces:
Options
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedServletOptions(javax.servlet.ServletConfig config, javax.servlet.ServletContext context) Create an EmbeddedServletOptions object using data available from ServletConfig and ServletContext. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAre text strings to be generated as byte arrays, if the page is unbuffered?booleanAre Text strings to be generated as char arrays?intBackground JSP compile thread check intervallbooleanShould class files be compiled with debug information?What classpath should I use while compiling the servlets generated from JSP files?Compiler to use.The name of class that implements JavaCompiler, used for Java compilations.Compiler source VM, e.g. 1.3, 1.4, or 1.5.The compiler target VM, e.g. 1.1, 1.2, 1.3, 1.4, or 1.5.booleanIs Jasper being used in development mode?booleanReturns true if Jasper issues a compilation error instead of a runtime Instantiation error if the class attribute specified in useBean action is invalid.booleangetFork()boolean flag to tell Ant whether to fork JSP page compilations.Class ID for use in the plugin tag when the browser is IE.intGets initial capacity of HashMap which maps JSPs to their corresponding servlets.Java platform encoding to generate the JSP page servlet.Obtain JSP configuration informantion specified in web.xml.booleanAre we keeping generated code around?booleanAre we supporting HTML mapped servlets?intModification test interval.getProperty(String name) booleanIf class files are generated as byte arrays, should they be saved to disk at the end of compilations?What is my scratch dir?booleanShould errors be sent to client or thrown into stderr?Gets the system class path.Obtain a Tag Plugin ManagerThe cache for the location of the TLD's for the various tag libraries 'exposed' by the web application.booleanShould white spaces between directives or actions be trimmed?booleanReturns the value of the usePrecompiled (or use-precompiled) init param.booleanIf the buffer attribute for the page directive is not specified, is the default "none"?booleanReturns true if tag handler pooling is enabled, false otherwise.booleanShould SMAP info for JSR45 debugging be dumped to a file?booleanIs the generation of SMAP info for JSR45 debuggin suppressed?booleanbooleanIs generation of X-Powered-By response header enabled/disabled?voidsetErrorOnUseBeanInvalidClassAttribute(boolean b) voidsetProperty(String name, String value)
-
Field Details
-
fork
public boolean forkShould Ant fork its java compiles of JSP pages.
-
-
Constructor Details
-
EmbeddedServletOptions
public EmbeddedServletOptions(javax.servlet.ServletConfig config, javax.servlet.ServletContext context) Create an EmbeddedServletOptions object using data available from ServletConfig and ServletContext.
-
-
Method Details
-
getProperty
-
setProperty
-
getKeepGenerated
public boolean getKeepGenerated()Are we keeping generated code around?- Specified by:
getKeepGeneratedin interfaceOptions
-
getSaveBytecode
public boolean getSaveBytecode()Description copied from interface:OptionsIf class files are generated as byte arrays, should they be saved to disk at the end of compilations?- Specified by:
getSaveBytecodein interfaceOptions
-
getTrimSpaces
public boolean getTrimSpaces()Should white spaces between directives or actions be trimmed?- Specified by:
getTrimSpacesin interfaceOptions
-
isPoolingEnabled
public boolean isPoolingEnabled()Description copied from interface:OptionsReturns true if tag handler pooling is enabled, false otherwise.- Specified by:
isPoolingEnabledin interfaceOptions
-
getMappedFile
public boolean getMappedFile()Are we supporting HTML mapped servlets?- Specified by:
getMappedFilein interfaceOptions
-
getSendErrorToClient
public boolean getSendErrorToClient()Should errors be sent to client or thrown into stderr?- Specified by:
getSendErrorToClientin interfaceOptions
-
getClassDebugInfo
public boolean getClassDebugInfo()Should class files be compiled with debug information?- Specified by:
getClassDebugInfoin interfaceOptions
-
getCheckInterval
public int getCheckInterval()Background JSP compile thread check intervall- Specified by:
getCheckIntervalin interfaceOptions
-
getModificationTestInterval
public int getModificationTestInterval()Modification test interval.- Specified by:
getModificationTestIntervalin interfaceOptions
-
getDevelopment
public boolean getDevelopment()Is Jasper being used in development mode?- Specified by:
getDevelopmentin interfaceOptions
-
isSmapSuppressed
public boolean isSmapSuppressed()Is the generation of SMAP info for JSR45 debuggin suppressed?- Specified by:
isSmapSuppressedin interfaceOptions
-
isSmapDumped
public boolean isSmapDumped()Should SMAP info for JSR45 debugging be dumped to a file?- Specified by:
isSmapDumpedin interfaceOptions
-
genStringAsCharArray
public boolean genStringAsCharArray()Are Text strings to be generated as char arrays?- Specified by:
genStringAsCharArrayin interfaceOptions
-
genStringAsByteArray
public boolean genStringAsByteArray()Description copied from interface:OptionsAre text strings to be generated as byte arrays, if the page is unbuffered?- Specified by:
genStringAsByteArrayin interfaceOptions
-
isDefaultBufferNone
public boolean isDefaultBufferNone()Description copied from interface:OptionsIf the buffer attribute for the page directive is not specified, is the default "none"?- Specified by:
isDefaultBufferNonein interfaceOptions
-
getIeClassId
Class ID for use in the plugin tag when the browser is IE.- Specified by:
getIeClassIdin interfaceOptions
-
getScratchDir
What is my scratch dir?- Specified by:
getScratchDirin interfaceOptions
-
getClassPath
What classpath should I use while compiling the servlets generated from JSP files?- Specified by:
getClassPathin interfaceOptions
-
getSystemClassPath
Gets the system class path.- Specified by:
getSystemClassPathin interfaceOptions- Returns:
- The system class path
-
isXpoweredBy
public boolean isXpoweredBy()Is generation of X-Powered-By response header enabled/disabled?- Specified by:
isXpoweredByin interfaceOptions
-
getCompiler
-
getCompilerTargetVM
Description copied from interface:OptionsThe compiler target VM, e.g. 1.1, 1.2, 1.3, 1.4, or 1.5.- Specified by:
getCompilerTargetVMin interfaceOptions- See Also:
-
getCompilerSourceVM
Description copied from interface:OptionsCompiler source VM, e.g. 1.3, 1.4, or 1.5.- Specified by:
getCompilerSourceVMin interfaceOptions- See Also:
-
getCompilerClassName
Description copied from interface:OptionsThe name of class that implements JavaCompiler, used for Java compilations.- Specified by:
getCompilerClassNamein interfaceOptions- See Also:
-
getErrorOnUseBeanInvalidClassAttribute
public boolean getErrorOnUseBeanInvalidClassAttribute()Description copied from interface:OptionsReturns true if Jasper issues a compilation error instead of a runtime Instantiation error if the class attribute specified in useBean action is invalid.- Specified by:
getErrorOnUseBeanInvalidClassAttributein interfaceOptions
-
setErrorOnUseBeanInvalidClassAttribute
public void setErrorOnUseBeanInvalidClassAttribute(boolean b) -
getTldScanner
Description copied from interface:OptionsThe cache for the location of the TLD's for the various tag libraries 'exposed' by 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).- Specified by:
getTldScannerin interfaceOptions- Returns:
- the instance of the TldScanner for the web-application.
-
getJavaEncoding
Description copied from interface:OptionsJava platform encoding to generate the JSP page servlet.- Specified by:
getJavaEncodingin interfaceOptions
-
getFork
-
getJspConfig
Description copied from interface:OptionsObtain JSP configuration informantion specified in web.xml.- Specified by:
getJspConfigin interfaceOptions
-
getTagPluginManager
Description copied from interface:OptionsObtain a Tag Plugin Manager- Specified by:
getTagPluginManagerin interfaceOptions
-
getInitialCapacity
public int getInitialCapacity()Gets initial capacity of HashMap which maps JSPs to their corresponding servlets.- Specified by:
getInitialCapacityin interfaceOptions
-
getUsePrecompiled
public boolean getUsePrecompiled()Returns the value of the usePrecompiled (or use-precompiled) init param.- Specified by:
getUsePrecompiledin interfaceOptions
-
isValidationEnabled
public boolean isValidationEnabled()- Specified by:
isValidationEnabledin interfaceOptions
-