Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.jdeveloper.webapp.libraries
Class TagLibraryUtils

java.lang.Object
  extended by oracle.jdeveloper.webapp.libraries.TagLibraryUtils

public class TagLibraryUtils
extends java.lang.Object

Utility class for generic tag library


Constructor Summary
TagLibraryUtils()
           
 
Method Summary
static java.util.Collection<java.net.URL> getLibraryUrls(TagLibrary lib, Project project)
          Gets the URLs of all library JARs the tag library depends on, including the JAR containing the TLD file.
static java.net.URL getTaglibJarFileURL(java.net.URL taglibLocation)
           
static java.net.URL getTaglibJarURL(java.net.URL taglibLocation)
           
static java.net.URL getTaglibURL(java.lang.String taglibURL)
          Returns a URL pointing to the taglib file given by the taglibURL.
static java.net.URL getWebInfLibURL(Project project)
          Returns the current WEB-INF/lib directory of the project.
static java.net.URL getWebInfURL(Project project)
          Returns the current WEB-INF directory of the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagLibraryUtils

public TagLibraryUtils()
Method Detail

getLibraryUrls

public static java.util.Collection<java.net.URL> getLibraryUrls(TagLibrary lib,
                                                                Project project)
Gets the URLs of all library JARs the tag library depends on, including the JAR containing the TLD file. JSP Runtime classes are not added to the list.

Parameters:
lib -
project - Can be null.
Returns:

getTaglibJarFileURL

public static java.net.URL getTaglibJarFileURL(java.net.URL taglibLocation)
Parameters:
taglibLocation -
Returns:
jar file URL with the file: protocol

getTaglibJarURL

public static java.net.URL getTaglibJarURL(java.net.URL taglibLocation)
Parameters:
taglibLocation -
Returns:
JAR URL with the jar: protocol

getTaglibURL

public static java.net.URL getTaglibURL(java.lang.String taglibURL)
Returns a URL pointing to the taglib file given by the taglibURL. URL can be an entry inside an archive or a taglib file.

Parameters:
taglibURL - URL string can be an entry inside an archive or a taglib file.

getWebInfURL

public static final java.net.URL getWebInfURL(Project project)
Returns the current WEB-INF directory of the project.

Parameters:
project - The current project
Returns:
url The WEB-INF url.

getWebInfLibURL

public static final java.net.URL getWebInfLibURL(Project project)
Returns the current WEB-INF/lib directory of the project.

Parameters:
project - The current project
Returns:
url The WEB-INF/lib url.

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

Copyright © 1997, 2011, Oracle. All rights reserved.