Package org.opencms.file.wrapper

This package contains classes and interfaces used to access OpenCms through a wrapped CmsObject.

See: Description

Package org.opencms.file.wrapper Description

This package contains classes and interfaces used to access OpenCms through a wrapped CmsObject.

Main entry point is the class CmsObjectWrapper. The CmsObjectWrapper is configured with a list of implementations of I_CmsResourceWrapper. So it is possible to show resources in the VFS different as usual.

For example: If you would like that xml pages always have the correct file extension (.xml) so you can use the CmsResourceExtensionWrapperXmlPage. This implementation of the interface I_CmsResourceWrapper adds to every resource of type "xmlpage" the correct file extension ".xml".

This package is mainly used by CmsRepositorySession to create a simple configurable access to the resources in OpenCms.

Since:
6.2.4
See Also:
CmsObjectWrapper, I_CmsResourceWrapper