Interface I_CmsStoredContentDirectDeliveryLoader

All Known Implementing Classes:
CmsDumpLoader, CmsImageLoader, CmsPointerLoader

Capability interface for loaders which allow direct delivery of externally stored original content.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    exportStoredContentTo(CmsObject cms, CmsResource resource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
    Tries to deliver externally stored content directly during static export.
    boolean
    isStoredContentDirectDeliveryEnabled(CmsObject cms, CmsResource resource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)
    Returns if direct delivery of externally stored original content is enabled for the given resource.
  • Method Details

    • exportStoredContentTo

      boolean exportStoredContentTo(CmsObject cms, CmsResource resource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws IOException, CmsException
      Tries to deliver externally stored content directly during static export.

      Parameters:
      cms - the CMS context
      resource - the resource
      req - the request
      res - the response
      Returns:
      true if the response was handled
      Throws:
      IOException - in case writing to the response fails
      CmsException - in case storage delivery fails
    • isStoredContentDirectDeliveryEnabled

      boolean isStoredContentDirectDeliveryEnabled(CmsObject cms, CmsResource resource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws CmsException
      Returns if direct delivery of externally stored original content is enabled for the given resource.

      Parameters:
      cms - the CMS context
      resource - the resource
      req - the request
      res - the response
      Returns:
      true if direct stored content delivery may be used
      Throws:
      CmsException - in case the decision can not be made