Package org.ametys.plugins.frontedition
Class DispatchGenerator
-
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
public class DispatchGenerator extends DispatchGenerator
Dispatch generator for the front edition
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.ametys.core.ui.dispatcher.DispatchGenerator
DispatchGenerator.ResponseHandler
-
-
Field Summary
Fields Modifier and Type Field Description private CurrentUserProvider
_currentUserProvider
private AmetysObjectResolver
_resolver
-
Fields inherited from class org.ametys.core.ui.dispatcher.DispatchGenerator
_requestAttributesHelper
-
Fields inherited from class org.apache.cocoon.generation.ServiceableGenerator
manager
-
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, source
-
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
-
-
Constructor Summary
Constructors Constructor Description DispatchGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
_setContextInRequestAttributes(Map<String,Object> contextAsMap)
Set the request attributes from the contextual parametersvoid
service(ServiceManager smanager)
protected Map<String,Object>
transmitAttributes(Map<String,Object> attributes)
Filters attributes that should be transmitted to the dispatched request-
Methods inherited from class org.ametys.core.ui.dispatcher.DispatchGenerator
_createUrl, _getUrlPrefix, generate
-
Methods inherited from class org.apache.cocoon.generation.ServiceableGenerator
dispose
-
Methods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setup
-
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandler
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
_currentUserProvider
private CurrentUserProvider _currentUserProvider
-
-
Constructor Detail
-
DispatchGenerator
public DispatchGenerator()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classDispatchGenerator
- Throws:
ServiceException
-
_setContextInRequestAttributes
protected void _setContextInRequestAttributes(Map<String,Object> contextAsMap)
Description copied from class:DispatchGenerator
Set the request attributes from the contextual parameters- Overrides:
_setContextInRequestAttributes
in classDispatchGenerator
- Parameters:
contextAsMap
- The contextual parameters
-
transmitAttributes
protected Map<String,Object> transmitAttributes(Map<String,Object> attributes)
Description copied from class:DispatchGenerator
Filters attributes that should be transmitted to the dispatched request- Overrides:
transmitAttributes
in classDispatchGenerator
- Parameters:
attributes
- The full list of attributes- Returns:
- The attributes filtered
-
-