Class CmsStoredContentDeliverySupport

java.lang.Object
org.opencms.staticexport.CmsStoredContentDeliverySupport

Support class for direct delivery of stored content during static export.

  • Constructor Details

  • 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 manager
      loader - the resource loader
      cms - the CMS context
      exportResource - the resource to export
      req - the current request
      res - the current response
      exportFileName - the target export file name
      Returns:
      true if 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 manager
      loader - the resource loader
      cms - the CMS context
      exportResource - the resource to export
      req - the current request
      res - the current response
      exportFileName - the target export file name
      Returns:
      true if 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 manager
      configuration - the stored content delivery configuration
      loader - the resource loader
      cms - the CMS context
      exportResource - the resource to export
      req - the current request
      res - the current response
      exportFileName - the target export file name
      Returns:
      true if the export has been handled without writing the local export file
      Throws:
      CmsException - if something goes wrong