com.caucho.jsp.cfg
Class JspPropertyGroup

java.lang.Object
  extended by com.caucho.jsp.cfg.JspPropertyGroup
All Implemented Interfaces:
JspPropertyGroupDescriptor

public class JspPropertyGroup
extends java.lang.Object
implements JspPropertyGroupDescriptor

Configuration for the jsp-property-group.


Constructor Summary
JspPropertyGroup()
           
JspPropertyGroup(WebApp webApp)
           
 
Method Summary
 void addIncludeCoda(java.lang.String url)
          Adds a new coda inclusion.
 void addIncludePrelude(java.lang.String url)
          Adds a new prelude inclusion.
 void addURLPattern(java.lang.String urlPattern)
          Adds a URL pattern.
 java.lang.String getBuffer()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getDefaultContentType()
           
 java.lang.String getDeferredSyntaxAllowedAsLiteral()
           
 long getDependencyCheckInterval()
          Gets the dependency check interval.
 java.lang.String getElIgnored()
           
 java.lang.String getErrorOnUndeclaredNamespace()
           
 java.lang.String getId()
          Returns the group's identifier.
 boolean getIdeHack()
          Gets the value of the ide-hack
 java.util.ArrayList<java.lang.String> getIncludeCodaList()
          Returns the coda inclusion.
 java.util.Collection<java.lang.String> getIncludeCodas()
           
 java.util.ArrayList<java.lang.String> getIncludePreludeList()
          Returns the prelude inclusion.
 java.util.Collection<java.lang.String> getIncludePreludes()
           
 java.lang.String getIsXml()
           
 int getJspMax()
          Gets the value of the jsp-max
 java.lang.String getPageEncoding()
          Returns the default page encoding.
 boolean getPrecompile()
          Return true if precompilation is allowed.
 boolean getRequireSource()
          Set if the *.jsp source is required.
 java.lang.String getScriptingInvalid()
           
 boolean getStaticPageGeneratesClass()
          Set true if static pages should generate a class
 FileSetType getTldFileSet()
          Gets the tld fileset.
 java.lang.String getTrimDirectiveWhitespaces()
           
 java.util.Collection<java.lang.String> getUrlPatterns()
           
 void init()
           
 boolean isAutoCompile()
          Return true if auto-compilation is allowed.
 boolean isDeferredSyntaxAllowedAsLiteral()
          Sets the deferred-syntax.
 boolean isDisableLog()
          Returns true if JSP logging should be disabled.
 java.lang.Boolean isELIgnored()
          Return true if EL expressions are ignored for the JSP page.
 boolean isErrorOnUndeclaredNamespace()
           
 boolean isFastJsf()
          Return true if fast jsf is allowed.
 boolean isFastJstl()
          Return true if fast jstl is allowed.
 boolean isIgnoreELException()
          Set true if EL exceptions should be ignored.
 boolean isLoadTldOnInit()
          Set true when JSP pages should load tld files.
 boolean isPrintNullAsBlank()
          Set if nulls are printed as space
 boolean isRecompileOnError()
          Sets the recompile-on-errrkReturns true if JSP logging should be disabled.
 boolean isRecycleTags()
          Return true if recycle tags is enabled
 boolean isScriptingInvalid()
          Return true if scripting expressions are invalid for the JSP page.
 boolean isSession()
          Return true if sessions are enabled by default.
 boolean isStaticEncoding()
          Return true if static encoding is enabled
 boolean isTrimDirectiveWhitespaces()
          True if whitespace is trimmed.
 boolean isValidateTaglibSchema()
          Set true if the taglibs should have the schema validated
 boolean isVelocityEnabled()
          Return true if velocity is allowed.
 java.lang.Boolean isXml()
          Return true if the JSP uses XML format.
 boolean match(java.lang.String url)
          Returns true if the property group matches the URL.
 void setAutoCompile(boolean compile)
          Set if auto-compile is allowed.
 void setBuffer(java.lang.String buffer)
           
 void setCharacterEncoding(java.lang.String characterEncoding)
           
 void setDefaultContentType(java.lang.String defaultContentType)
           
 void setDeferredSyntaxAllowedAsLiteral(boolean isAllowed)
          Sets the deferred-syntax.
 void setDependencyCheckInterval(Period period)
          Sets the dependency check interval.
 void setDescription(java.lang.String description)
          Sets the group's description
 void setDisplayName(java.lang.String displayName)
          Sets the group's display name
 void setELIgnored(boolean isELIgnored)
          Set true if EL expressions are ignored for the JSP page.
 void setErrorOnUndeclaredNamespace(java.lang.Boolean errorOnUndeclaredNamespace)
           
 void setFastJsf(boolean fastJsf)
          Set if fast jsf is allowed.
 void setFastJstl(boolean fastJstl)
          Set if fast jstl is allowed.
 void setId(java.lang.String id)
          Sets the group's identifier.
 void setIdeHack(boolean ideHack)
          Sets true for the ide-hack
 void setIgnoreELException(boolean ignore)
          Set true if EL exceptions should be ignored.
 void setIsXml(boolean isXml)
          Return true if the JSP uses XML format.
 void setJspMax(int max)
          Sets the jsp-max
 void setLoadTldOnInit(boolean isPreload)
          Set true when JSP pages should load tld files.
 void setPageEncoding(java.lang.String pageEncoding)
          Sets the default page encoding.
 void setPrecompile(boolean precompile)
          Set if precompilation is allowed.
 void setPrintNullAsBlank(boolean enable)
          Set if nulls are printed as space
 void setRecompileOnError(boolean recompile)
          Sets the recompile-on-errrkReturns true if JSP logging should be disabled.
 void setRecycleTags(boolean recycleTags)
          Set if recycle tags is enabled.
 void setRequireSource(boolean requireSource)
          Set if the *.jsp source is required.
 void setScriptingInvalid(boolean isScriptingInvalid)
          Set true if scripting is invalid for the JSP page.
 void setSession(boolean session)
          Set if sessions are enabled by default
 void setStaticEncoding(boolean staticEncoding)
          Set if static encoding is enabled.
 void setStaticPageGeneratesClass(boolean generate)
          Set true if static pages should generate a class
 void setTldDir(Path tldDir)
          Sets a restriction of the tld dir.
 void setTldFileSet(FileSetType fileSet)
          Sets the tld fileset.
 void setTrimDirectiveWhitespaces(boolean isTrim)
          Set if whitespace is trimmed.
 void setValidateTaglibSchema(boolean isValidate)
          Set true if the taglibs should have the schema validated
 void setVelocityEnabled(boolean velocity)
          Set if velocity-style syntax is allowed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspPropertyGroup

public JspPropertyGroup()

JspPropertyGroup

public JspPropertyGroup(WebApp webApp)
Method Detail

getId

public java.lang.String getId()
Returns the group's identifier.


setId

public void setId(java.lang.String id)
Sets the group's identifier.


setDescription

public void setDescription(java.lang.String description)
Sets the group's description


setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets the group's display name


addURLPattern

public void addURLPattern(java.lang.String urlPattern)
Adds a URL pattern.


getUrlPatterns

public java.util.Collection<java.lang.String> getUrlPatterns()
Specified by:
getUrlPatterns in interface JspPropertyGroupDescriptor

setPageEncoding

public void setPageEncoding(java.lang.String pageEncoding)
Sets the default page encoding.


getPageEncoding

public java.lang.String getPageEncoding()
Returns the default page encoding.

Specified by:
getPageEncoding in interface JspPropertyGroupDescriptor

setELIgnored

public void setELIgnored(boolean isELIgnored)
Set true if EL expressions are ignored for the JSP page.


isELIgnored

public java.lang.Boolean isELIgnored()
Return true if EL expressions are ignored for the JSP page.


getElIgnored

public java.lang.String getElIgnored()
Specified by:
getElIgnored in interface JspPropertyGroupDescriptor

setLoadTldOnInit

public void setLoadTldOnInit(boolean isPreload)
Set true when JSP pages should load tld files.


isLoadTldOnInit

public boolean isLoadTldOnInit()
Set true when JSP pages should load tld files.


setDependencyCheckInterval

public void setDependencyCheckInterval(Period period)
Sets the dependency check interval.


getDependencyCheckInterval

public long getDependencyCheckInterval()
Gets the dependency check interval.


setScriptingInvalid

public void setScriptingInvalid(boolean isScriptingInvalid)
Set true if scripting is invalid for the JSP page.


isScriptingInvalid

public boolean isScriptingInvalid()
Return true if scripting expressions are invalid for the JSP page.


getScriptingInvalid

public java.lang.String getScriptingInvalid()
Specified by:
getScriptingInvalid in interface JspPropertyGroupDescriptor

setIsXml

public void setIsXml(boolean isXml)
Return true if the JSP uses XML format.


isXml

public java.lang.Boolean isXml()
Return true if the JSP uses XML format.


getIsXml

public java.lang.String getIsXml()
Specified by:
getIsXml in interface JspPropertyGroupDescriptor

addIncludePrelude

public void addIncludePrelude(java.lang.String url)
Adds a new prelude inclusion.


getIncludePreludeList

public java.util.ArrayList<java.lang.String> getIncludePreludeList()
Returns the prelude inclusion.


getIncludePreludes

public java.util.Collection<java.lang.String> getIncludePreludes()
Specified by:
getIncludePreludes in interface JspPropertyGroupDescriptor

addIncludeCoda

public void addIncludeCoda(java.lang.String url)
Adds a new coda inclusion.


getIncludeCodaList

public java.util.ArrayList<java.lang.String> getIncludeCodaList()
Returns the coda inclusion.


getIncludeCodas

public java.util.Collection<java.lang.String> getIncludeCodas()
Specified by:
getIncludeCodas in interface JspPropertyGroupDescriptor

getCharacterEncoding

public java.lang.String getCharacterEncoding()

setCharacterEncoding

public void setCharacterEncoding(java.lang.String characterEncoding)

setPrecompile

public void setPrecompile(boolean precompile)
Set if precompilation is allowed.


getPrecompile

public boolean getPrecompile()
Return true if precompilation is allowed.


isAutoCompile

public boolean isAutoCompile()
Return true if auto-compilation is allowed.


setAutoCompile

public void setAutoCompile(boolean compile)
Set if auto-compile is allowed.


setRequireSource

public void setRequireSource(boolean requireSource)
Set if the *.jsp source is required.


getRequireSource

public boolean getRequireSource()
Set if the *.jsp source is required.


setPrintNullAsBlank

public void setPrintNullAsBlank(boolean enable)
Set if nulls are printed as space


isPrintNullAsBlank

public boolean isPrintNullAsBlank()
Set if nulls are printed as space


isIgnoreELException

public boolean isIgnoreELException()
Set true if EL exceptions should be ignored.


setIgnoreELException

public void setIgnoreELException(boolean ignore)
Set true if EL exceptions should be ignored.


setFastJstl

public void setFastJstl(boolean fastJstl)
Set if fast jstl is allowed.


isFastJstl

public boolean isFastJstl()
Return true if fast jstl is allowed.


setFastJsf

public void setFastJsf(boolean fastJsf)
Set if fast jsf is allowed.


isFastJsf

public boolean isFastJsf()
Return true if fast jsf is allowed.


setVelocityEnabled

public void setVelocityEnabled(boolean velocity)
Set if velocity-style syntax is allowed.


isVelocityEnabled

public boolean isVelocityEnabled()
Return true if velocity is allowed.


setSession

public void setSession(boolean session)
Set if sessions are enabled by default


isSession

public boolean isSession()
Return true if sessions are enabled by default.


setStaticEncoding

public void setStaticEncoding(boolean staticEncoding)
Set if static encoding is enabled.


isStaticEncoding

public boolean isStaticEncoding()
Return true if static encoding is enabled


setRecycleTags

public void setRecycleTags(boolean recycleTags)
Set if recycle tags is enabled.


isRecycleTags

public boolean isRecycleTags()
Return true if recycle tags is enabled


setIdeHack

public void setIdeHack(boolean ideHack)
Sets true for the ide-hack


getIdeHack

public boolean getIdeHack()
Gets the value of the ide-hack


setJspMax

public void setJspMax(int max)
               throws ConfigException
Sets the jsp-max

Throws:
ConfigException

getJspMax

public int getJspMax()
Gets the value of the jsp-max


isDisableLog

public boolean isDisableLog()
Returns true if JSP logging should be disabled.


setDeferredSyntaxAllowedAsLiteral

public void setDeferredSyntaxAllowedAsLiteral(boolean isAllowed)
Sets the deferred-syntax.


isDeferredSyntaxAllowedAsLiteral

public boolean isDeferredSyntaxAllowedAsLiteral()
Sets the deferred-syntax.


getDeferredSyntaxAllowedAsLiteral

public java.lang.String getDeferredSyntaxAllowedAsLiteral()
Specified by:
getDeferredSyntaxAllowedAsLiteral in interface JspPropertyGroupDescriptor

getDefaultContentType

public java.lang.String getDefaultContentType()
Specified by:
getDefaultContentType in interface JspPropertyGroupDescriptor

setDefaultContentType

public void setDefaultContentType(java.lang.String defaultContentType)

getBuffer

public java.lang.String getBuffer()
Specified by:
getBuffer in interface JspPropertyGroupDescriptor

setBuffer

public void setBuffer(java.lang.String buffer)

isErrorOnUndeclaredNamespace

public boolean isErrorOnUndeclaredNamespace()

getErrorOnUndeclaredNamespace

public java.lang.String getErrorOnUndeclaredNamespace()
Specified by:
getErrorOnUndeclaredNamespace in interface JspPropertyGroupDescriptor

setErrorOnUndeclaredNamespace

public void setErrorOnUndeclaredNamespace(java.lang.Boolean errorOnUndeclaredNamespace)

setRecompileOnError

public void setRecompileOnError(boolean recompile)
Sets the recompile-on-errrkReturns true if JSP logging should be disabled.


isRecompileOnError

public boolean isRecompileOnError()
Sets the recompile-on-errrkReturns true if JSP logging should be disabled.


setValidateTaglibSchema

public void setValidateTaglibSchema(boolean isValidate)
Set true if the taglibs should have the schema validated


isValidateTaglibSchema

public boolean isValidateTaglibSchema()
Set true if the taglibs should have the schema validated


setTldFileSet

public void setTldFileSet(FileSetType fileSet)
Sets the tld fileset.


getTldFileSet

public FileSetType getTldFileSet()
Gets the tld fileset.


setTldDir

public void setTldDir(Path tldDir)
Sets a restriction of the tld dir.


setStaticPageGeneratesClass

public void setStaticPageGeneratesClass(boolean generate)
Set true if static pages should generate a class


getStaticPageGeneratesClass

public boolean getStaticPageGeneratesClass()
Set true if static pages should generate a class


isTrimDirectiveWhitespaces

public boolean isTrimDirectiveWhitespaces()
True if whitespace is trimmed.


setTrimDirectiveWhitespaces

public void setTrimDirectiveWhitespaces(boolean isTrim)
Set if whitespace is trimmed.


getTrimDirectiveWhitespaces

public java.lang.String getTrimDirectiveWhitespaces()
Specified by:
getTrimDirectiveWhitespaces in interface JspPropertyGroupDescriptor

init

@PostConstruct
public void init()
          throws ServletException
Throws:
ServletException

match

public boolean match(java.lang.String url)
Returns true if the property group matches the URL.