    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.filters.CacheFilter

    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.CacheFilter

public class CacheFilter
extends ResourceFilter

##

ATTR_DEFAULT_MAX_AGE
ATTR_MAX_ENTRIES
ATTR_MAX_SIZE
cache
STATE_TAG

##

CacheFilter()

##

getDefaultMaxAge()
getMaxEntries()
getMaxSize()
ingoingFilter(RequestInterface, FilterInterface[], int)
outgoingFilter(RequestInterface, ReplyInterface, FilterInterface[], int)

##

cache

     protected Cache cache

STATE_TAG

     protected static final String STATE_TAG

ATTR_MAX_SIZE

     protected static int ATTR_MAX_SIZE

ATTR_MAX_ENTRIES

     protected static int ATTR_MAX_ENTRIES

ATTR_DEFAULT_MAX_AGE

     protected static int ATTR_DEFAULT_MAX_AGE

##

CacheFilter

     public CacheFilter()

##

getMaxSize

     public int getMaxSize()

getMaxEntries

     public int getMaxEntries()

getDefaultMaxAge

     public int getDefaultMaxAge()

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

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

    All Packages  Class Hierarchy  This Package  Previous  Next  Index