All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.filters.SimpleCacheFilter

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ResourceFilter
                                           |
                                           +----org.w3c.jigsaw.filters.SimpleCacheFilter

public class SimpleCacheFilter
extends ResourceFilter

Variable Index

 o ATTR_DEFAULT_MAX_AGE
 o ATTR_FLUSH
 o ATTR_MAX_ENTRIES
 o ATTR_MAX_SIZE
 o cache
 o STATE_TAG

Constructor Index

 o SimpleCacheFilter()

Method Index

 o getDefaultMaxAge()
 o getFlushFlag()
 o getMaxEntries()
 o getMaxSize()
 o ingoingFilter(RequestInterface, FilterInterface[], int)
 o initialize(Object[])
Initialize the frames of that framed resource.
 o outgoingFilter(RequestInterface, ReplyInterface, FilterInterface[], int)

Variables

 o cache
 protected SimpleCache cache
 o STATE_TAG
 protected static final String STATE_TAG
 o ATTR_MAX_SIZE
 protected static int ATTR_MAX_SIZE
 o ATTR_MAX_ENTRIES
 protected static int ATTR_MAX_ENTRIES
 o ATTR_DEFAULT_MAX_AGE
 protected static int ATTR_DEFAULT_MAX_AGE
 o ATTR_FLUSH
 protected static int ATTR_FLUSH

Constructors

 o SimpleCacheFilter
 public SimpleCacheFilter()

Methods

 o getMaxSize
 public int getMaxSize()
 o getMaxEntries
 public int getMaxEntries()
 o getDefaultMaxAge
 public int getDefaultMaxAge()
 o getFlushFlag
 public boolean getFlushFlag()
 o ingoingFilter
 public ReplyInterface ingoingFilter(RequestInterface req,
                                     FilterInterface filters[],
                                     int fidx) throws ProtocolException
Returns:
A Reply instance, if the filter did know how to answer the request without further processing, null otherwise.
Throws: ProtocolException
If processing should be interrupted, because an abnormal situation occured.
Overrides:
ingoingFilter in class ResourceFilter
 o outgoingFilter
 public ReplyInterface outgoingFilter(RequestInterface req,
                                      ReplyInterface rep,
                                      FilterInterface filters[],
                                      int fidx) throws ProtocolException
Parameters:
request - The original request.
reply - It's original reply.
Returns:
A Reply instance, or null if processing should continue normally.
Throws: ProtocolException
If processing should be interrupted, because an abnormal situation occured.
Overrides:
outgoingFilter in class ResourceFilter
 o initialize
 public void initialize(Object values[])
Initialize the frames of that framed resource.

Overrides:
initialize in class FramedResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index