Package org.ametys.cms.fo
Class FODispatchGenerator
- All Implemented Interfaces:
Poolable,Recyclable,Disposable,Component,LogEnabled,Serviceable,Generator,SitemapModelComponent,XMLProducer
The purpose of this action is to handle front office requests.
These requests are usually AJAX requests coming from services.
The processing is loosely based on the
DispatchGenerator-
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 voidDispatch the requestprotected void_handleFiles(Map<String, Object> requestParameters, String parameterKey) Handle uploaded filesprotected voidRemove the request attributesMethods inherited from class org.ametys.core.ui.dispatcher.DispatchGenerator
_createUrl, _dispatchingSubRequest, _exceptionToMessageInformation, _exceptionToStackTraceInformation, _getRequestBody, _getRequestContext, _getUrlPrefix, _handleError, _handleResponse, _saxMeasuredTimes, _setContextInRequestAttributes, _setResponseHeader, generate, service, transmitAttributesMethods 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
-
FODispatchGenerator
public FODispatchGenerator()
-
-
Method Details
-
_dispatching
protected void _dispatching(Map<String, Object> requestBody, Map<String, throws SAXExceptionObject> contextAsMap) Description copied from class:DispatchGeneratorDispatch the request- Overrides:
_dispatchingin classDispatchGenerator- Parameters:
requestBody- the request body as json objectcontextAsMap- the request context as json- Throws:
SAXException- if failed to sax response
-
_removeRequestAttributes
Description copied from class:DispatchGeneratorRemove the request attributes- Overrides:
_removeRequestAttributesin classDispatchGenerator
-
_handleFiles
Description copied from class:DispatchGeneratorHandle uploaded files- Overrides:
_handleFilesin classDispatchGenerator- Parameters:
requestParameters- the request parametersparameterKey- the parameter key holding the sub request
-