Class TldPathConfig

java.lang.Object
com.ibm.wsspi.jsp.taglib.config.TldPathConfig

public class TldPathConfig extends Object
This class is used in conjunction with a GlobalTagLibConfig and is used to provide specific path information for a tld file.
  • Constructor Details

    • TldPathConfig

      @Deprecated public TldPathConfig(String tldPath, String uri, String strContainsListenerDefs)
      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

      public TldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs)
      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

      public List 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

      public String getTldPath()
      Gets the relative path within the jar to the tld file
      Returns:
      String - the relative path within the jar
    • getUri

      public String getUri()
      Gets the uri of the tld
      Returns:
      String - the uri of the tld
    • setUri

      public void setUri(String string)
      The uri will only be picked up by the JSP Engine when TldPathConfig(String tldPath, String uri, boolean strContainsListenerDefs) is used. Sets the uri for the tld

      The 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