Class ResourceUtils
java.lang.Object
org.apache.myfaces.renderkit.html.util.ResourceUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getContractName
(Resource resource) static boolean
isRenderedScript
(FacesContext facesContext, String libraryName, String resourceName) static boolean
isRenderedStylesheet
(FacesContext facesContext, String libraryName, String resourceName) static void
markScriptAsRendered
(FacesContext facesContext, String libraryName, String resourceName) static void
markStylesheetAsRendered
(FacesContext facesContext, String libraryName, String resourceName) static void
renderDefaultJsfJsInlineIfNecessary
(FacesContext facesContext, ResponseWriter writer) static void
writeScriptInline
(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
-