Package org.ametys.plugins.frontedition
Class DispatchGenerator
- All Implemented Interfaces:
Poolable
,Recyclable
,Disposable
,Component
,LogEnabled
,Serviceable
,Generator
,SitemapModelComponent
,XMLProducer
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 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Convert the exception to a viewable traceprotected void
_setContextInRequestAttributes
(Map<String, Object> contextAsMap) Set the request attributes from the contextual parametersvoid
service
(ServiceManager smanager) transmitAttributes
(Map<String, Object> attributes) Filters attributes that should be transmitted to the dispatched requestMethods inherited from class org.ametys.core.ui.dispatcher.DispatchGenerator
_createUrl, _exceptionToMessageInformation, _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
-
Constructor Details
-
DispatchGenerator
public DispatchGenerator()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classDispatchGenerator
- Throws:
ServiceException
-
_setContextInRequestAttributes
Description copied from class:DispatchGenerator
Set the request attributes from the contextual parameters- Overrides:
_setContextInRequestAttributes
in classDispatchGenerator
- Parameters:
contextAsMap
- The contextual parameters
-
transmitAttributes
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
-
_exceptionToStackTraceInformation
Description copied from class:DispatchGenerator
Convert the exception to a viewable trace- Overrides:
_exceptionToStackTraceInformation
in classDispatchGenerator
- Parameters:
t
- The exception- Returns:
- The visible message
-