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, _sourceResolver
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 void
Dispatch the requestprotected void
_handleFiles
(Map<String, Object> requestParameters, String parameterKey) Handle uploaded filesprotected void
Remove 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, transmitAttributes
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
-
FODispatchGenerator
public FODispatchGenerator()
-
-
Method Details
-
_dispatching
protected void _dispatching(Map<String, Object> requestBody, Map<String, throws SAXExceptionObject> contextAsMap) Description copied from class:DispatchGenerator
Dispatch the request- Overrides:
_dispatching
in 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:DispatchGenerator
Remove the request attributes- Overrides:
_removeRequestAttributes
in classDispatchGenerator
-
_handleFiles
Description copied from class:DispatchGenerator
Handle uploaded files- Overrides:
_handleFiles
in classDispatchGenerator
- Parameters:
requestParameters
- the request parametersparameterKey
- the parameter key holding the sub request
-