Package org.opencms.loader
Interface I_CmsStoredContentDirectDeliveryLoader
- All Known Implementing Classes:
CmsDumpLoader,CmsImageLoader,CmsPointerLoader
public interface I_CmsStoredContentDirectDeliveryLoader
Capability interface for loaders which allow direct delivery of externally stored original content.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexportStoredContentTo(CmsObject cms, CmsResource resource, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) Tries to deliver externally stored content directly during static export.booleanisStoredContentDirectDeliveryEnabled(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 contextresource- the resourcereq- the requestres- the response- Returns:
trueif the response was handled- Throws:
IOException- in case writing to the response failsCmsException- 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 contextresource- the resourcereq- the requestres- the response- Returns:
trueif direct stored content delivery may be used- Throws:
CmsException- in case the decision can not be made
-