Package org.ametys.web.renderingcontext
Class RenderingContextInputModule
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.ametys.web.renderingcontext.RenderingContextInputModule
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,InputModule
public class RenderingContextInputModule extends AbstractLogEnabled implements InputModule, ThreadSafe, Serviceable
Input module for getting the current rendering context.Possible values are:
- back
- page rendering is done for the back-office
- preview
- preview of page rendering for the front-office
- site
- page rendering for the front-office
-
-
Field Summary
Fields Modifier and Type Field Description private RenderingContextHandler
_handler
-
Fields inherited from interface org.apache.cocoon.components.modules.input.InputModule
ROLE
-
-
Constructor Summary
Constructors Constructor Description RenderingContextInputModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getAttribute(String name, Configuration modeConf, Map objectModel)
Iterator
getAttributeNames(Configuration modeConf, Map objectModel)
Object[]
getAttributeValues(String name, Configuration modeConf, Map objectModel)
void
service(ServiceManager manager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_handler
private RenderingContextHandler _handler
-
-
Constructor Detail
-
RenderingContextInputModule
public RenderingContextInputModule()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getAttribute
public Object getAttribute(String name, Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttribute
in interfaceInputModule
- Throws:
ConfigurationException
-
getAttributeNames
public Iterator getAttributeNames(Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttributeNames
in interfaceInputModule
- Throws:
ConfigurationException
-
getAttributeValues
public Object[] getAttributeValues(String name, Configuration modeConf, Map objectModel) throws ConfigurationException
- Specified by:
getAttributeValues
in interfaceInputModule
- Throws:
ConfigurationException
-
-