org.apache.myfaces.shared.renderkit.html.util
Class ResourceUtils

java.lang.Object
  extended by org.apache.myfaces.shared.renderkit.html.util.ResourceUtils

public class ResourceUtils
extends java.lang.Object

Since:
4.0.1
Version:
$Revision: 824859 $ $Date: 2009-10-13 12:42:36 -0500 (Mar, 13 Oct 2009) $
Author:
Leonardo Uribe (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String BODY_TARGET
           
static java.lang.String DEFAULT_SCRIPT_RENDERER_TYPE
           
static java.lang.String DEFAULT_STYLESHEET_RENDERER_TYPE
           
static java.lang.String FORM_TARGET
           
static java.lang.String HEAD_TARGET
           
static java.lang.String JAVAX_FACES_LIBRARY_NAME
           
static java.lang.String JAVAX_FACES_OUTPUT_COMPONENT_TYPE
           
static java.lang.String JAVAX_FACES_TEXT_RENDERER_TYPE
           
static java.lang.String JSF_JS_RESOURCE_NAME
           
static java.lang.String JSF_UNCOMPRESSED_JS_RESOURCE_NAME
           
static java.lang.String MYFACES_JS_RESOURCE_NAME
           
static java.lang.String MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED
           
static java.lang.String MYFACES_LIBRARY_NAME
           
 
Constructor Summary
ResourceUtils()
           
 
Method Summary
static boolean isRenderedScript(javax.faces.context.FacesContext facesContext, java.lang.String libraryName, java.lang.String resourceName)
           
static boolean isRenderedStylesheet(javax.faces.context.FacesContext facesContext, java.lang.String libraryName, java.lang.String resourceName)
           
static void markScriptAsRendered(javax.faces.context.FacesContext facesContext, java.lang.String libraryName, java.lang.String resourceName)
           
static void markStylesheetAsRendered(javax.faces.context.FacesContext facesContext, java.lang.String libraryName, java.lang.String resourceName)
           
static void renderDefaultJsfJsInlineIfNecessary(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer)
           
static void renderMyfacesJSInlineIfNecessary(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer)
           
static void writeScriptInline(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, java.lang.String libraryName, java.lang.String resourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVAX_FACES_LIBRARY_NAME

public static final java.lang.String JAVAX_FACES_LIBRARY_NAME
See Also:
Constant Field Values

JSF_JS_RESOURCE_NAME

public static final java.lang.String JSF_JS_RESOURCE_NAME
See Also:
Constant Field Values

MYFACES_JS_RESOURCE_NAME

public static final java.lang.String MYFACES_JS_RESOURCE_NAME
See Also:
Constant Field Values

MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED

public static final java.lang.String MYFACES_JS_RESOURCE_NAME_UNCOMPRESSED
See Also:
Constant Field Values

MYFACES_LIBRARY_NAME

public static final java.lang.String MYFACES_LIBRARY_NAME
See Also:
Constant Field Values

JSF_UNCOMPRESSED_JS_RESOURCE_NAME

public static final java.lang.String JSF_UNCOMPRESSED_JS_RESOURCE_NAME
See Also:
Constant Field Values

HEAD_TARGET

public static final java.lang.String HEAD_TARGET
See Also:
Constant Field Values

BODY_TARGET

public static final java.lang.String BODY_TARGET
See Also:
Constant Field Values

FORM_TARGET

public static final java.lang.String FORM_TARGET
See Also:
Constant Field Values

JAVAX_FACES_OUTPUT_COMPONENT_TYPE

public static final java.lang.String JAVAX_FACES_OUTPUT_COMPONENT_TYPE
See Also:
Constant Field Values

JAVAX_FACES_TEXT_RENDERER_TYPE

public static final java.lang.String JAVAX_FACES_TEXT_RENDERER_TYPE
See Also:
Constant Field Values

DEFAULT_SCRIPT_RENDERER_TYPE

public static final java.lang.String DEFAULT_SCRIPT_RENDERER_TYPE
See Also:
Constant Field Values

DEFAULT_STYLESHEET_RENDERER_TYPE

public static final java.lang.String DEFAULT_STYLESHEET_RENDERER_TYPE
See Also:
Constant Field Values
Constructor Detail

ResourceUtils

public ResourceUtils()
Method Detail

markScriptAsRendered

public static void markScriptAsRendered(javax.faces.context.FacesContext facesContext,
                                        java.lang.String libraryName,
                                        java.lang.String resourceName)

markStylesheetAsRendered

public static void markStylesheetAsRendered(javax.faces.context.FacesContext facesContext,
                                            java.lang.String libraryName,
                                            java.lang.String resourceName)

isRenderedScript

public static boolean isRenderedScript(javax.faces.context.FacesContext facesContext,
                                       java.lang.String libraryName,
                                       java.lang.String resourceName)

isRenderedStylesheet

public static boolean isRenderedStylesheet(javax.faces.context.FacesContext facesContext,
                                           java.lang.String libraryName,
                                           java.lang.String resourceName)

writeScriptInline

public static void writeScriptInline(javax.faces.context.FacesContext facesContext,
                                     javax.faces.context.ResponseWriter writer,
                                     java.lang.String libraryName,
                                     java.lang.String resourceName)
                              throws java.io.IOException
Throws:
java.io.IOException

renderDefaultJsfJsInlineIfNecessary

public static void renderDefaultJsfJsInlineIfNecessary(javax.faces.context.FacesContext facesContext,
                                                       javax.faces.context.ResponseWriter writer)
                                                throws java.io.IOException
Throws:
java.io.IOException

renderMyfacesJSInlineIfNecessary

public static void renderMyfacesJSInlineIfNecessary(javax.faces.context.FacesContext facesContext,
                                                    javax.faces.context.ResponseWriter writer)
                                             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.