Class EmbeddedServletOptions
java.lang.Object
org.apache.jasper.EmbeddedServletOptions
- All Implemented Interfaces:
Options
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intBackground compile thread check interval in seconds.private booleanDo we want to include debugging information in the class file?private StringWhat classpath should I use while compiling generated servlets?private StringCompiler to use.private StringThe compiler class name.private StringThe compiler source VM.private StringCompiler target VM.private booleanprivate booleanIs Jasper being used in development mode?private booleanbooleanShould Ant fork its java compiles of JSP pages.private booleanprivate booleanAre Text strings to be generated as char arrays?private StringNeed to have this as is for versions 4 and 5 of IE.private intprivate booleanDetermines whether tag handler pooling is enabled.private booleanShould SMAP info for JSR45 debugging be dumped to a file?private booleanIs the generation of SMAP info for JSR45 debuggin suppressed?private booleanprivate StringJava platform encoding to generate the JSP page servlet.private JspConfigJsp config informationprivate booleanDo you want to keep the generated Java files around?private static Loggerprivate booleanDo you want support for "mapped" files? This will generate servlet that has a print statement per line of the JSP file.private intModification test interval.private booleanIf class files are generated as byte arrays, should they be saved to disk at the end of compilations?private FileI want to see my generated servlets.private booleanDo you want stack traces and such displayed in the client's browser? If this is false, such messages go to the standard error or a log file if the standard error is redirected.private Propertiesprivate Stringprivate TagPluginManagerTagPluginManagerprivate TldScannerCache for the TLD locationsprivate booleanShould white spaces between directives or actions be trimmed?private booleanprivate booleanIs generation of X-Powered-By response header enabled/disabled? -
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?private booleangetBoolean(javax.servlet.ServletConfig config, boolean init, String param) 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.The compiler target VM, e.g.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"?private booleanisJDK6()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?private voidparseCheckInterval(String param) private voidvoidsetErrorOnUseBeanInvalidClassAttribute(boolean b) voidsetProperty(String name, String value)
-
Field Details
-
log
-
settings
-
development
private boolean developmentIs Jasper being used in development mode? -
fork
public boolean forkShould Ant fork its java compiles of JSP pages. -
keepGenerated
private boolean keepGeneratedDo you want to keep the generated Java files around? -
saveBytecode
private boolean saveBytecodeIf class files are generated as byte arrays, should they be saved to disk at the end of compilations? -
trimSpaces
private boolean trimSpacesShould white spaces between directives or actions be trimmed? -
isPoolingEnabled
private boolean isPoolingEnabledDetermines whether tag handler pooling is enabled. -
mappedFile
private boolean mappedFileDo you want support for "mapped" files? This will generate servlet that has a print statement per line of the JSP file. This seems like a really nice feature to have for debugging. -
sendErrorToClient
private boolean sendErrorToClientDo you want stack traces and such displayed in the client's browser? If this is false, such messages go to the standard error or a log file if the standard error is redirected. -
classDebugInfo
private boolean classDebugInfoDo we want to include debugging information in the class file? -
checkInterval
private int checkIntervalBackground compile thread check interval in seconds. -
isSmapSuppressed
private boolean isSmapSuppressedIs the generation of SMAP info for JSR45 debuggin suppressed? -
isSmapDumped
private boolean isSmapDumpedShould SMAP info for JSR45 debugging be dumped to a file? -
genStringAsCharArray
private boolean genStringAsCharArrayAre Text strings to be generated as char arrays? -
genStringAsByteArray
private boolean genStringAsByteArray -
defaultBufferNone
private boolean defaultBufferNone -
errorOnUseBeanInvalidClassAttribute
private boolean errorOnUseBeanInvalidClassAttribute -
scratchDir
I want to see my generated servlets. Which directory are they in? -
ieClassId
Need to have this as is for versions 4 and 5 of IE. Can be set from the initParams so if it changes in the future all that is needed is to have a jsp initParam of type ieClassId="" -
classpath
What classpath should I use while compiling generated servlets? -
sysClassPath
-
compiler
Compiler to use. -
compilerTargetVM
Compiler target VM. -
compilerSourceVM
The compiler source VM. -
compilerClassName
The compiler class name. -
tldScanner
Cache for the TLD locations -
jspConfig
Jsp config information -
tagPluginManager
TagPluginManager -
javaEncoding
Java platform encoding to generate the JSP page servlet. -
modificationTestInterval
private int modificationTestIntervalModification test interval. -
xpoweredBy
private boolean xpoweredByIs generation of X-Powered-By response header enabled/disabled? -
usePrecompiled
private boolean usePrecompiled -
isValidationEnabled
private boolean isValidationEnabled -
initialCapacity
private int initialCapacity
-
-
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
-
parseCheckInterval
-
parseModificationTestInterval
-
getBoolean
-
isJDK6
private boolean isJDK6()
-