|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jasig.resource.aggr.util.ResourcesElementsProviderImpl
public class ResourcesElementsProviderImpl
ResourcesDao implementation that resolves the String argument using
the ServletContext.
Depends on JAXBContext to unmarshal the Resources.
ServletContextAware,
JAXBContext| Field Summary | |
|---|---|
static String |
AGGREGATED_THEME_PARAMETER
|
static String |
DEFAULT_AGGREGATION_ENABLED
|
protected org.apache.commons.logging.Log |
logger
|
| Constructor Summary | |
|---|---|
ResourcesElementsProviderImpl()
|
|
| Method Summary | |
|---|---|
protected void |
appendCssNode(Document document,
DocumentFragment head,
Css css,
String relativeRoot)
Convert the Css argument to an HTML link tag and append it
to the DocumentFragment. |
protected void |
appendJsNode(Document document,
DocumentFragment head,
Js js,
String relativeRoot)
Convert the Js argument to an HTML script tag and append it
to the DocumentFragment. |
Included |
getDefaultIncludedType()
They type of resources to be returned by default |
Included |
getIncludedType(javax.servlet.http.HttpServletRequest request)
They type of resources to be returned for this request |
protected org.springframework.core.io.Resource |
getResource(String skinXml)
|
protected Resources |
getResources(javax.servlet.http.HttpServletRequest request,
String skinXml)
|
String |
getResourcesParameter(javax.servlet.http.HttpServletRequest request,
String skinXml,
String name)
Get the specified skin parameter, null if there is no parameter with the specified name |
NodeList |
getResourcesXmlFragment(javax.servlet.http.HttpServletRequest request,
String skinXml)
Get an XML NodeList of link and script tags for the specified skin. |
void |
setDefaultIncludedType(Included included)
Set the default include type for resources. |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
void |
setResourcesDao(ResourcesDao resourcesDao)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String AGGREGATED_THEME_PARAMETER
public static final String DEFAULT_AGGREGATION_ENABLED
protected final org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public ResourcesElementsProviderImpl()
| Method Detail |
|---|
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void setResourcesDao(ResourcesDao resourcesDao)
public void setDefaultIncludedType(Included included)
ResourcesElementsProviderIncluded.PLAIN results in un-aggregated
resources being returned. Included.AGGREGATED results in aggregated resources being
returned. Included.BOTH is not supported as an argument here.
setDefaultIncludedType in interface ResourcesElementsProviderpublic Included getDefaultIncludedType()
ResourcesElementsProvider
getDefaultIncludedType in interface ResourcesElementsProviderpublic Included getIncludedType(javax.servlet.http.HttpServletRequest request)
ResourcesElementsProvider
getIncludedType in interface ResourcesElementsProvider
public String getResourcesParameter(javax.servlet.http.HttpServletRequest request,
String skinXml,
String name)
ResourcesElementsProvider
getResourcesParameter in interface ResourcesElementsProvider
public NodeList getResourcesXmlFragment(javax.servlet.http.HttpServletRequest request,
String skinXml)
ResourcesElementsProviderResourcesElementsProvider.getIncludedType(HttpServletRequest)
to determine which resource URLs to use.
getResourcesXmlFragment in interface ResourcesElementsProvider
protected Resources getResources(javax.servlet.http.HttpServletRequest request,
String skinXml)
protected org.springframework.core.io.Resource getResource(String skinXml)
protected void appendJsNode(Document document,
DocumentFragment head,
Js js,
String relativeRoot)
Js argument to an HTML script tag and append it
to the DocumentFragment.
document - head - js - relativeRoot -
protected void appendCssNode(Document document,
DocumentFragment head,
Css css,
String relativeRoot)
Css argument to an HTML link tag and append it
to the DocumentFragment.
document - head - css - relativeRoot -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||