org.apache.jasper

Interface Options

public interface Options

A class to hold all init parameters specific to the JSP engine.

Author: Anil K. Vijendran Hans Bergsten Pierre Delisle

Method Summary
booleangenStringAsCharArray()
Are Text strings to be generated as char arrays?
MapgetCache()
The web-application wide cache for the returned TreeNode by parseXMLDocument in TagLibraryInfoImpl.parseTLD, if isCaching returns true.
intgetCheckInterval()
Background compile thread check interval in seconds
booleangetClassDebugInfo()
Should we include debug information in compiled class?
StringgetClassPath()
What classpath should I use while compiling the servlets generated from JSP files?
StringgetCompiler()
Compiler to use.
StringgetCompilerClassName()
Java compiler class to use.
StringgetCompilerSourceVM()
Compiler source VM, e.g.
StringgetCompilerTargetVM()
The compiler target VM, e.g.
booleangetDevelopment()
Is Jasper being used in development mode?
booleangetDisplaySourceFragment()
Should we include a source fragment in exception messages, which could be displayed to the developer ?
booleangetErrorOnUseBeanInvalidClassAttribute()
Returns 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.
StringgetIeClassId()
Class ID for use in the plugin tag when the browser is IE.
StringgetJavaEncoding()
Java platform encoding to generate the JSP page servlet.
JspConfiggetJspConfig()
Obtain JSP configuration informantion specified in web.xml.
booleangetKeepGenerated()
Are we keeping generated code around?
booleangetMappedFile()
Are we supporting HTML mapped servlets?
intgetModificationTestInterval()
Modification test interval.
FilegetScratchDir()
What is my scratch dir?
booleangetSendErrorToClient()
Should errors be sent to client or thrown into stderr?
TagPluginManagergetTagPluginManager()
Obtain a Tag Plugin Manager
TldLocationsCachegetTldLocationsCache()
The cache for the location of the TLD's for the various tag libraries 'exposed' by the web application.
booleangetTrimSpaces()
Should white spaces between directives or actions be trimmed?
booleanisCaching()
Is caching enabled (used for precompilation).
booleanisPoolingEnabled()
Returns true if tag handler pooling is enabled, false otherwise.
booleanisSmapDumped()
Indicates whether SMAP info for JSR45 debugging should be dumped to a file.
booleanisSmapSuppressed()
Is the generation of SMAP info for JSR45 debugging suppressed?
booleanisXpoweredBy()
Is generation of X-Powered-By response header enabled/disabled?

Method Detail

genStringAsCharArray

public boolean genStringAsCharArray()
Are Text strings to be generated as char arrays?

getCache

public Map getCache()
The web-application wide cache for the returned TreeNode by parseXMLDocument in TagLibraryInfoImpl.parseTLD, if isCaching returns true.

Returns: the Map(String uri, TreeNode tld) instance.

getCheckInterval

public int getCheckInterval()
Background compile thread check interval in seconds

getClassDebugInfo

public boolean getClassDebugInfo()
Should we include debug information in compiled class?

getClassPath

public String getClassPath()
What classpath should I use while compiling the servlets generated from JSP files?

getCompiler

public String getCompiler()
Compiler to use.

getCompilerClassName

public String getCompilerClassName()
Java compiler class to use.

getCompilerSourceVM

public String getCompilerSourceVM()
Compiler source VM, e.g. 1.3, 1.4, or 1.5.

getCompilerTargetVM

public String getCompilerTargetVM()
The compiler target VM, e.g. 1.1, 1.2, 1.3, 1.4, or 1.5.

getDevelopment

public boolean getDevelopment()
Is Jasper being used in development mode?

getDisplaySourceFragment

public boolean getDisplaySourceFragment()
Should we include a source fragment in exception messages, which could be displayed to the developer ?

getErrorOnUseBeanInvalidClassAttribute

public boolean getErrorOnUseBeanInvalidClassAttribute()
Returns true if Jasper issues a compilation error instead of a runtime Instantiation error if the class attribute specified in useBean action is invalid.

getFork

public boolean getFork()
boolean flag to tell Ant whether to fork JSP page compilations.

getIeClassId

public String getIeClassId()
Class ID for use in the plugin tag when the browser is IE.

getJavaEncoding

public String getJavaEncoding()
Java platform encoding to generate the JSP page servlet.

getJspConfig

public JspConfig getJspConfig()
Obtain JSP configuration informantion specified in web.xml.

getKeepGenerated

public boolean getKeepGenerated()
Are we keeping generated code around?

getMappedFile

public boolean getMappedFile()
Are we supporting HTML mapped servlets?

getModificationTestInterval

public int getModificationTestInterval()
Modification test interval.

getScratchDir

public File getScratchDir()
What is my scratch dir?

getSendErrorToClient

public boolean getSendErrorToClient()

Deprecated:

Should errors be sent to client or thrown into stderr?

getTagPluginManager

public TagPluginManager getTagPluginManager()
Obtain a Tag Plugin Manager

getTldLocationsCache

public TldLocationsCache getTldLocationsCache()
The 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).

Returns: the instance of the TldLocationsCache for the web-application.

getTrimSpaces

public boolean getTrimSpaces()
Should white spaces between directives or actions be trimmed?

isCaching

public boolean isCaching()
Is caching enabled (used for precompilation).

isPoolingEnabled

public boolean isPoolingEnabled()
Returns true if tag handler pooling is enabled, false otherwise.

isSmapDumped

public boolean isSmapDumped()
Indicates whether SMAP info for JSR45 debugging should be dumped to a file. Ignored is suppressSmap() is true

isSmapSuppressed

public boolean isSmapSuppressed()
Is the generation of SMAP info for JSR45 debugging suppressed?

isXpoweredBy

public boolean isXpoweredBy()
Is generation of X-Powered-By response header enabled/disabled?
Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.