Class w3c.jigsaw.filters.CounterFilter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.filters.CounterFilter

java.lang.Object
   |
   +----w3c.jigsaw.resources.AttributeHolder
           |
           +----w3c.jigsaw.resources.Resource
                   |
                   +----w3c.jigsaw.resources.ResourceFilter
                           |
                           +----w3c.jigsaw.filters.CounterFilter

public class CounterFilter
extends ResourceFilter
Count the number of hits to the target. This resource maintains the number of hits to some target resource, as one of its persistent attribute.

Variable Index

 o ATTR_COUNTER
Attribute index - The counter attribute.

Constructor Index

 o CounterFilter()

Method Index

 o ingoingFilter(Request)
We count all accesses, even the one that failed.

Variables

 o ATTR_COUNTER
  protected static int ATTR_COUNTER
Attribute index - The counter attribute.

Constructors

 o CounterFilter
  public CounterFilter()

Methods

 o ingoingFilter
  public synchronized int ingoingFilter(Request request)
We count all accesses, even the one that failed.
Parameters:
request - The request being processed.
Overrides:
ingoingFilter in class ResourceFilter

All Packages  Class Hierarchy  This Package  Previous  Next  Index