Resource API
![]() | An abstraction of a XWiki URI (Entity, Template, Skin, etc) |
Type | JAR |
Category | |
Developed by | |
Rating | |
License | GNU Lesser General Public License 2.1 |
Bundled With | XWiki Enterprise |
Table of contents
Description
A resource in XWiki represents something that can be accessed. For example: Entities, Templates, Skin files, Files on the filesystem.
It can be viewed as a URI or as an abstraction of an XWiki URL.
The following classes/interfaces are available:
- Resource: represents a Resource. EntityResource represent a resource to an XWiki Entity (document, space, page, wiki, etc).
- ResourceFactory: A component role type to create a resource out of something. For example the URL module provides a StandardResourceFactory to create a Resource out of an URL.
- ResourceSerializer: A component role type to convert a Resource into something else. For example the URL module will provide in the future a serialized to convert a Resource into an URL.
- ResourceManager: Provides a getResource() method to access the current resource being processed (located in the Execution Context).
Prerequisites & Installation Instructions
We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager).
You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.
Dependencies
Dependencies for this extension (org.xwiki.platform:xwiki-platform-resource 5.4):
- org.xwiki.commons:xwiki-commons-component-default 5.4
- org.xwiki.commons:xwiki-commons-context 5.4
- org.xwiki.platform:xwiki-platform-model 5.4