|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.opencms.launcher.A_CmsLauncher
|
+--com.opencms.launcher.CmsXmlLauncher
|
+--com.opencms.flex.CmsXmlTemplateLoader
Implementation of the I_CmsResourceLoader and
the I_CmsLauncher interface for
XMLTemplates.
This implementation can deliver XMLTemplates directly since it extends
the CmsXmlLauncher. It is also usable to include
XMLTemplates as sub-elements on a JSP page since it implements the
I_CmsResourceLoader interface.
| Field Summary |
| Fields inherited from class com.opencms.launcher.CmsXmlLauncher |
C_ELEMENT_REPLACE, m_templateCache |
| Fields inherited from interface com.opencms.flex.I_CmsResourceLoader |
C_LOADER_CACHENAME, C_LOADER_CACHEPROPERTY, C_LOADER_EXCEPTION_PREFIX, C_LOADER_STREAMPROPERTY |
| Fields inherited from interface com.opencms.boot.I_CmsLogChannels |
C_FLEX_CACHE, C_FLEX_LOADER, C_LOGGING, C_MODULE_CRITICAL, C_MODULE_DEBUG, C_MODULE_INFO, C_OPENCMS_CACHE, C_OPENCMS_CRITICAL, C_OPENCMS_CRONSCHEDULER, C_OPENCMS_DEBUG, C_OPENCMS_ELEMENTCACHE, C_OPENCMS_INFO, C_OPENCMS_INIT, C_OPENCMS_POOL, C_OPENCMS_STATICEXPORT, C_OPENCMS_STREAMING, C_PREPROCESSOR_IS_LOGGING |
| Fields inherited from interface com.opencms.launcher.I_CmsLauncher |
C_TYPE_DUMP, C_TYPE_JAVASCRIPT, C_TYPE_JSP, C_TYPE_LINK, C_TYPE_PDF, C_TYPE_VELOCITY, C_TYPE_XML |
| Constructor Summary | |
CmsXmlTemplateLoader()
The constructor of the class is empty and does nothing. |
|
| Method Summary | |
void |
destroy()
Destroy this ResourceLoder, this is a NOOP so far. |
String |
getResourceLoaderInfo()
Return a String describing the ResourceLoader, which is "A XMLTemplate loader that extends from com.opencms.launcher.CmsXmlLauncher". |
void |
init(A_OpenCms openCms)
Initialize the ResourceLoader, the OpenCms parameter is saved here for later access to generateOutput(). |
void |
load(CmsObject cms,
CmsFile file,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Basic top-page processing method for this I_CmsResourceLoader, this method is called if the page is called as a sub-element on a page not already loded with a I_CmsResourceLoader, which most often would be an I_CmsLauncher then. |
void |
service(CmsObject cms,
CmsResource file,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
Does the job of including the XMLTemplate, this method is called directly if the element is called as a sub-element from another I_CmsResourceLoader. |
| Methods inherited from class com.opencms.launcher.CmsXmlLauncher |
callCanonicalRoot, clearCache, clearLauncherCache, generateOutput, getClassName, getLauncherId, getTemplateCache, getTemplateClass, handleException, initlaunch, launch, setOpenCms, writeBytesToResponse |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsXmlTemplateLoader()
| Method Detail |
public void destroy()
destroy in interface I_CmsResourceLoaderpublic String getResourceLoaderInfo()
"A XMLTemplate loader that extends from com.opencms.launcher.CmsXmlLauncher".
getResourceLoaderInfo in interface I_CmsResourceLoaderpublic void init(A_OpenCms openCms)
generateOutput().
init in interface I_CmsResourceLoaderopenCms - used to access generateOutput() later
public void load(CmsObject cms,
CmsFile file,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
load in interface I_CmsResourceLoadercms - the initialized CmsObject which provides user permissionsfile - the requested OpenCms VFS resourcereq - the original servlet requestres - the original servlet response
javax.servlet.ServletException - might be thrown in the process of including the JSP
IOException - might be thrown in the process of including the JSPI_CmsResourceLoader,
service(CmsObject, CmsResource, ServletRequest, ServletResponse)
public void service(CmsObject cms,
CmsResource file,
javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws javax.servlet.ServletException,
IOException
service in interface I_CmsResourceLoadercms - used to access the OpenCms VFSfile - the reqested JSP file resource in the VFSreq - the current requestres - the current response
javax.servlet.ServletException - might be thrown in the process of including the JSP
IOException - might be thrown in the process of including the JSPCmsFlexRequestDispatcher
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||