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
_dispatchProcessExtensionPoint, _jsonUtils, _requestAttributesHelper, _sourceResolverFields inherited from class org.apache.cocoon.generation.ServiceableGenerator
managerFields inherited from class org.apache.cocoon.generation.AbstractGenerator
objectModel, parameters, resolver, sourceFields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringCreate url to callprotected StringConvert the exception to a viewable traceprotected void_setContextInRequestAttributes(Map<String, Object> contextAsMap) Set the request attributes from the contextual parametersvoidservice(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
_dispatching, _dispatchingSubRequest, _exceptionToMessageInformation, _getRequestBody, _getRequestContext, _getUrlPrefix, _handleError, _handleFiles, _handleResponse, _removeRequestAttributes, _saxMeasuredTimes, _setResponseHeader, generateMethods inherited from class org.apache.cocoon.generation.ServiceableGenerator
disposeMethods inherited from class org.apache.cocoon.generation.AbstractGenerator
recycle, setupMethods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
setConsumer, setContentHandler, setLexicalHandlerMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer 
- 
Constructor Details
- 
DispatchGenerator
public DispatchGenerator() 
 - 
 - 
Method Details
- 
service
- Specified by:
 servicein interfaceServiceable- Overrides:
 servicein classDispatchGenerator- Throws:
 ServiceException
 - 
_setContextInRequestAttributes
Description copied from class:DispatchGeneratorSet the request attributes from the contextual parameters- Overrides:
 _setContextInRequestAttributesin classDispatchGenerator- Parameters:
 contextAsMap- The contextual parameters
 - 
_createUrl
protected String _createUrl(String pluginOrWorkspace, String relativeUrl, Map<String, Object> requestParameters) Description copied from class:DispatchGeneratorCreate url to call- Overrides:
 _createUrlin classDispatchGenerator- Parameters:
 pluginOrWorkspace- the plugin or workspace namerelativeUrl- the relative urlrequestParameters- the request parameters. Can not be null.- Returns:
 - the full url
 
 - 
transmitAttributes
Description copied from class:DispatchGeneratorFilters attributes that should be transmitted to the dispatched request- Overrides:
 transmitAttributesin classDispatchGenerator- Parameters:
 attributes- The full list of attributes- Returns:
 - The attributes filtered
 
 - 
_exceptionToStackTraceInformation
Description copied from class:DispatchGeneratorConvert the exception to a viewable trace- Overrides:
 _exceptionToStackTraceInformationin classDispatchGenerator- Parameters:
 t- The exception- Returns:
 - The visible message
 
 
 -