Class ResourceUtils
java.lang.Object
org.apache.myfaces.renderkit.html.util.ResourceUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetContractName(Resource resource) static booleanisRenderedScript(FacesContext facesContext, String libraryName, String resourceName) static booleanisRenderedStylesheet(FacesContext facesContext, String libraryName, String resourceName) static voidmarkScriptAsRendered(FacesContext facesContext, String libraryName, String resourceName) static voidmarkStylesheetAsRendered(FacesContext facesContext, String libraryName, String resourceName) static voidrenderDefaultJsfJsInlineIfNecessary(FacesContext facesContext, ResponseWriter writer) static voidwriteScriptInline(FacesContext facesContext, ResponseWriter writer, String libraryName, String resourceName)
-
Field Details
-
FACES_UNCOMPRESSED_JS_RESOURCE_NAME
- See Also:
-
FACES_MINIMAL_JS_RESOURCE_NAME
- See Also:
-
JAKARTA_FACES_OUTPUT_COMPONENT_TYPE
- See Also:
-
JAKARTA_FACES_TEXT_RENDERER_TYPE
- See Also:
-
DEFAULT_SCRIPT_RENDERER_TYPE
- See Also:
-
DEFAULT_STYLESHEET_RENDERER_TYPE
- See Also:
-
-
Constructor Details
-
ResourceUtils
public ResourceUtils()
-
-
Method Details
-
markScriptAsRendered
public static void markScriptAsRendered(FacesContext facesContext, String libraryName, String resourceName) -
markStylesheetAsRendered
public static void markStylesheetAsRendered(FacesContext facesContext, String libraryName, String resourceName) -
isRenderedScript
public static boolean isRenderedScript(FacesContext facesContext, String libraryName, String resourceName) -
isRenderedStylesheet
public static boolean isRenderedStylesheet(FacesContext facesContext, String libraryName, String resourceName) -
writeScriptInline
public static void writeScriptInline(FacesContext facesContext, ResponseWriter writer, String libraryName, String resourceName) throws IOException - Throws:
IOException
-
renderDefaultJsfJsInlineIfNecessary
public static void renderDefaultJsfJsInlineIfNecessary(FacesContext facesContext, ResponseWriter writer) throws IOException - Throws:
IOException
-
getContractName
-