Skip navigation links

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

E17493-04


oracle.jdeveloper.webapp.faces
Class JsfResourceUtils

java.lang.Object
  extended by oracle.jdeveloper.webapp.faces.JsfResourceUtils


public final class JsfResourceUtils
extends java.lang.Object

Method Summary
static java.net.URL addResourceToProject(java.net.URL resourceURL, Context context, java.lang.String promptMessage, java.lang.String promptDialogTitle, java.lang.String saveDialogTitle, java.lang.String defaultLibrary)
           
static java.net.URL addResourceToProject(java.net.URL resourceURL, Context context, java.lang.String promptMessage, java.lang.String promptDialogTitle, java.lang.String saveDialogTitle, java.lang.String defaultLibrary, boolean toMetaInf)
           
static java.net.URL chooseResource(boolean forceResourceURL, URLFilter resourceFilter, Context context, java.lang.String selectDialogTitle, java.lang.String defaultLibrary)
          Lets user choose a resource.
static java.net.URL chooseResource(boolean forceResourceURL, URLFilter resourceFilter, Context context, java.lang.String promptMessage, java.lang.String promptDialogTitle, java.lang.String saveDialogTitle, java.lang.String selectDialogTitle, java.lang.String defaultLibrary)
          Lets user choose a resource
static java.net.URL getResourceLibrary(Context context, java.lang.String library)
           
static java.lang.String getResourceLibrary(Context context, java.net.URL url)
           
static URLChooser getResourceLibraryURLChooser(Context context)
           
static URLChooser getResourceURLChooser(Context context, URLFilter resourceFilter, java.lang.String defaultLibrary, boolean chooseOnlyExisting)
           
static boolean isLibraryVersion(java.net.URL url)
           
static boolean isResourceLibrary(Context context, java.net.URL url)
           
static boolean isResourceLibrary(java.net.URL jsfResourcesRoot, java.net.URL url)
           
static boolean isResourceURL(java.net.URL url, java.lang.String[] resourceExtensions)
           
static boolean isResourceVersion(java.net.URL url, java.lang.String[] resourceExtensions)
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

addResourceToProject

public static java.net.URL addResourceToProject(java.net.URL resourceURL,
                                                Context context,
                                                java.lang.String promptMessage,
                                                java.lang.String promptDialogTitle,
                                                java.lang.String saveDialogTitle,
                                                java.lang.String defaultLibrary)
Returns:
URL of the resource after it was save under 'resource' directory; otherwise null

addResourceToProject

public static java.net.URL addResourceToProject(java.net.URL resourceURL,
                                                Context context,
                                                java.lang.String promptMessage,
                                                java.lang.String promptDialogTitle,
                                                java.lang.String saveDialogTitle,
                                                java.lang.String defaultLibrary,
                                                boolean toMetaInf)
Returns:
URL of the resource after it was save under 'resource' directory; otherwise null

chooseResource

public static java.net.URL chooseResource(boolean forceResourceURL,
                                          URLFilter resourceFilter,
                                          Context context,
                                          java.lang.String selectDialogTitle,
                                          java.lang.String defaultLibrary)
Lets user choose a resource.
Parameters:
forceResourceURL - Set to true if user must choose a file under "resources" folder, or save the selected file under "resources" folder.
context -
selectDialogTitle - Title of the "select resource" dialog.
defaultLibrary - Name of the default library to search resource at, and save the resource to.
Returns:
URL of selected file, or null.

chooseResource

public static java.net.URL chooseResource(boolean forceResourceURL,
                                          URLFilter resourceFilter,
                                          Context context,
                                          java.lang.String promptMessage,
                                          java.lang.String promptDialogTitle,
                                          java.lang.String saveDialogTitle,
                                          java.lang.String selectDialogTitle,
                                          java.lang.String defaultLibrary)
Lets user choose a resource
Parameters:
forceResourceURL - Set to true if user must choose a file under "resources" folder, or save the selected file under "resources" folder.
context -
promptMessage - Message to prompt user when saving the file under resources "resources" folder.
promptDialogTitle - Title of the resource location warning prompt.
selectDialogTitle - Title of the "select resource" dialog.
saveDialogTitle - Title of the "save resource" dialog.
defaultLibrary - Name of the default library to search resource at, and save the resource to.
Returns:
URL of selected file, or null.

getResourceURLChooser

public static URLChooser getResourceURLChooser(Context context,
                                               URLFilter resourceFilter,
                                               java.lang.String defaultLibrary,
                                               boolean chooseOnlyExisting)
Parameters:
context -
resourceFilter -
chooseOnlyExisting -
Returns:
Null if the context does not have project.

getResourceLibraryURLChooser

public static URLChooser getResourceLibraryURLChooser(Context context)

getResourceLibrary

public static java.lang.String getResourceLibrary(Context context,
                                                  java.net.URL url)

isResourceLibrary

public static boolean isResourceLibrary(Context context,
                                        java.net.URL url)

isResourceLibrary

public static boolean isResourceLibrary(java.net.URL jsfResourcesRoot,
                                        java.net.URL url)

getResourceLibrary

public static java.net.URL getResourceLibrary(Context context,
                                              java.lang.String library)

isResourceURL

public static boolean isResourceURL(java.net.URL url,
                                    java.lang.String[] resourceExtensions)

isLibraryVersion

public static boolean isLibraryVersion(java.net.URL url)

isResourceVersion

public static boolean isResourceVersion(java.net.URL url,
                                        java.lang.String[] resourceExtensions)

Skip navigation links

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

E17493-04


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