Package org.opencms.staticexport
Class CmsStoredContentDeliverySupport
java.lang.Object
org.opencms.staticexport.CmsStoredContentDeliverySupport
Support class for direct delivery of stored content during static export.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(CmsStaticExportManager manager, CmsStoredContentDeliveryConfiguration configuration, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) Handles a streamed static export through direct stored content delivery if possible.protected booleantryHandleDirectResponse(CmsStaticExportManager manager, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) Handles an on-demand static export directly through the loader if possible.protected booleantryHandleStoredContentDelivery(CmsStaticExportManager manager, CmsStoredContentDeliveryConfiguration configuration, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) Handles a static export through direct stored content delivery if possible.
-
Constructor Details
-
CmsStoredContentDeliverySupport
public CmsStoredContentDeliverySupport()
-
-
Method Details
-
handle
public boolean handle(CmsStaticExportManager manager, CmsStoredContentDeliveryConfiguration configuration, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) throws CmsException Handles a streamed static export through direct stored content delivery if possible.- Parameters:
manager- the static export managerloader- the resource loadercms- the CMS contextexportResource- the resource to exportreq- the current requestres- the current responseexportFileName- the target export file name- Returns:
trueif the export has been handled without writing the local export file- Throws:
CmsException- if something goes wrong
-
tryHandleDirectResponse
protected boolean tryHandleDirectResponse(CmsStaticExportManager manager, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) throws CmsException Handles an on-demand static export directly through the loader if possible.- Parameters:
manager- the static export managerloader- the resource loadercms- the CMS contextexportResource- the resource to exportreq- the current requestres- the current responseexportFileName- the target export file name- Returns:
trueif the export has been handled without writing the local export file- Throws:
CmsException- if something goes wrong
-
tryHandleStoredContentDelivery
protected boolean tryHandleStoredContentDelivery(CmsStaticExportManager manager, CmsStoredContentDeliveryConfiguration configuration, I_CmsStaticExportStreamLoader loader, CmsObject cms, CmsResource exportResource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, String exportFileName) throws CmsException Handles a static export through direct stored content delivery if possible.- Parameters:
manager- the static export managerconfiguration- the stored content delivery configurationloader- the resource loadercms- the CMS contextexportResource- the resource to exportreq- the current requestres- the current responseexportFileName- the target export file name- Returns:
trueif the export has been handled without writing the local export file- Throws:
CmsException- if something goes wrong
-