Package org.ametys.web
Class CheckNotFrontAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.ametys.web.CheckNotFrontAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
Used to protect back-office only pipelines.
If the current
RenderingContext
is "front", an exception is thrown.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Request attribute to check if a request from front can go thru this checkFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) void
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
CAN_COME_FROM_FRONT_ATTRIBUTE
Request attribute to check if a request from front can go thru this check- See Also:
-
-
Constructor Details
-
CheckNotFrontAction
public CheckNotFrontAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-