General Actions:
| Provides an abstraction of a Container (request, response, session) |
| Type | JAR |
| Developed by | |
| License | GNU Lesser General Public License 2.1 |
| Bundled With | XWiki Enterprise, XWiki Enterprise Manager |
Table of contents
The notion of Container complements the notion of Environment by adding the notions of Request, Response and Session.
Similarly to the Environment, the idea is to allow using XWiki libraries that require a Container to be executed transparently in various environments such as a Servlet environment, a Portlet environment and more.
To get access to the Container implementation you'd use the following in your code:
This will allow you to access the following API:
It's up to the environment in which the XWiki code runs to initialize the Container component. For the Servlet Container we provide, this is done in XWikiServletContextListener which is a Servlet Listener that needs to be registered in your web.xml as follows: