Package com.ibm.wsspi.jsp.taglib.config
Class TldPathConfig
java.lang.Object
com.ibm.wsspi.jsp.taglib.config.TldPathConfig
This class is used in conjunction with a GlobalTagLibConfig and is used to provide specific path
information for a tld file.
-
Constructor Summary
ConstructorsConstructorDescriptionTldPathConfig
(String tldPath, String uri, boolean strContainsListenerDefs) Note that strContainsListenerDefs is a booleanTldPathConfig
(String tldPath, String uri, String strContainsListenerDefs) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets whether the tld contains any listener elements return boolean - if the tld file contains any listener elementsGets the conditions as to when this tld is made available.Gets the relative path within the jar to the tld filegetUri()
Gets the uri of the tldboolean
Specifies if the uri argument should override the uri attribute in the TLD.void
The uri will only be picked up by the JSP Engine whenTldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs)
is used.
-
Constructor Details
-
TldPathConfig
Deprecated.- Parameters:
tldPath
- - location of the TLD file.uri
- -This value is ignored in favor of the uri attribute within the TLD file. Use the other constructor if a custom URI is needed.strContainsListenerDefs
- - use "true" if any listeners are contained while any other value is considered false.
-
TldPathConfig
Note that strContainsListenerDefs is a boolean- Parameters:
tldPath
- - location of the TLD file.uri
- - overrides the uri attribute within the TLD file. (If overriding is not needed, set uri argument to match the uri-attribute in the TLD)strContainsListenerDefs
- - boolean value if any listeners are contained within the TLD.
-
-
Method Details
-
getAvailabilityConditionList
Gets the conditions as to when this tld is made available. The condition can be the existence of a file within the web-inf directory or the existence of a servlet class.- Returns:
- List - a list of availability conditions
-
getTldPath
Gets the relative path within the jar to the tld file- Returns:
- String - the relative path within the jar
-
getUri
Gets the uri of the tld- Returns:
- String - the uri of the tld
-
setUri
The uri will only be picked up by the JSP Engine whenTldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs)
is used. Sets the uri for the tldThe uri will only be picked up by the JSP Engine when
TldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs)
is used.- Parameters:
string
- String - the uri for the tld
-
containsListenerDefs
public boolean containsListenerDefs()Gets whether the tld contains any listener elements return boolean - if the tld file contains any listener elements -
isTLDURIOverridden
public boolean isTLDURIOverridden()Specifies if the uri argument should override the uri attribute in the TLD.Determined by which construtor is used.
- Returns:
- boolean - true only if
TldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs)
is used
-