org.apache.cocoon.portal.event.aspect.impl
Class ActionCounterEventAspect

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.portal.event.aspect.impl.ActionCounterEventAspect
All Implemented Interfaces:
Component, LogEnabled, Parameterizable, ThreadSafe, EventAspect

public class ActionCounterEventAspect
extends AbstractLogEnabled
implements EventAspect, ThreadSafe, Parameterizable

This aspect "disables" the back button of the browser and tries to avoid problems with the user browsing in multiple windows. This event attaches a unique number to each request. For each user only the current number is "active". Every request comming in containing an older number is disregarded and therefore ignored. WARNING: This aspect solves some problems while introducing new ones. Some features of the portal do NOT work when this aspect is used.

Version:
CVS $Id: ActionCounterEventAspect.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler, Volker Schmitt

Field Summary
protected static String ATTRIBUTE_NAME
           
protected  String parameterName
          The name of the parameter to check
 
Fields inherited from interface org.apache.cocoon.portal.event.aspect.EventAspect
ROLE
 
Constructor Summary
ActionCounterEventAspect()
           
 
Method Summary
 void parameterize(Parameters parameters)
           
 void process(EventAspectContext context, PortalService service)
           
 
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
 

Field Detail

ATTRIBUTE_NAME

protected static final String ATTRIBUTE_NAME

parameterName

protected String parameterName
The name of the parameter to check

Constructor Detail

ActionCounterEventAspect

public ActionCounterEventAspect()
Method Detail

process

public void process(EventAspectContext context,
                    PortalService service)
Specified by:
process in interface EventAspect

parameterize

public void parameterize(Parameters parameters)
                  throws ParameterException
Specified by:
parameterize in interface Parameterizable
Throws:
ParameterException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.