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
public class CheckNotFrontAction extends AbstractAction implements Serviceable, ThreadSafe
Used to protect back-office only pipelines. If the currentRenderingContext
is "front", an exception is thrown.
-
-
Field Summary
Fields Modifier and Type Field Description private RenderingContextHandler
_renderingContextHandler
static String
CAN_COME_FROM_FRONT_ATTRIBUTE
Request attribute to check if a request from front can go thru this check-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description CheckNotFrontAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(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 Detail
-
CAN_COME_FROM_FRONT_ATTRIBUTE
public static final String CAN_COME_FROM_FRONT_ATTRIBUTE
Request attribute to check if a request from front can go thru this check- See Also:
- Constant Field Values
-
_renderingContextHandler
private RenderingContextHandler _renderingContextHandler
-
-
Constructor Detail
-
CheckNotFrontAction
public CheckNotFrontAction()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
-
-