Package org.opencms.jsp
Interface I_CmsResourceContainer
- All Known Subinterfaces:
I_CmsXmlContentContainer
- All Known Implementing Classes:
CmsJspTagContentLoad
,CmsJspTagContentLoop
,CmsJspTagResourceLoad
public interface I_CmsResourceContainer
Provides access to a
CmsResource
object that was previously loaded by a parent tag.- Since:
- 8.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the currently used resource collector.Returns the parameters of the currently used resource collector.Returns the list of all currently loaded resources (instances of
).CmsResource
Returns the currently loaded resource.Returns the resource name in the VFS for the currently loaded resource.boolean
Deprecated.boolean
Resource iteration method to be used by JSP scriptlet code.boolean
Returnstrue
if this container is used as a resource preloader.
-
Method Details
-
getCollectorName
Returns the name of the currently used resource collector.- Returns:
- the name of the currently used resource collector
-
getCollectorParam
Returns the parameters of the currently used resource collector.- Returns:
- the parameters of the currently used resource collector
-
getCollectorResult
Returns the list of all currently loaded resources (instances of
).CmsResource
- Returns:
- the list of all currently loaded resources
-
getResource
Returns the currently loaded resource.- Returns:
- the currently loaded resource
-
getResourceName
Returns the resource name in the VFS for the currently loaded resource.- Returns:
- the resource name in the VFS for the currently loaded resource
-
hasMoreResources
Resource iteration method to be used by JSP scriptlet code.Calling this method will insert "direct edit" HTML to the output page (if required).
- Returns:
true
if more resources are to be iterated- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong
-
hasMoreContent
Deprecated.Resource iteration method to be used by JSP scriptlet code.Calling this method will insert "direct edit" HTML to the output page (if required).
- Returns:
true
if more resources are to be iterated- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong
-
isPreloader
boolean isPreloader()Returnstrue
if this container is used as a resource preloader.A resource preloader is used to load resources without looping through it.
- Returns:
true
if this container is used as a resource preloader
-
hasMoreResources()