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
-
ATTR_DEFAULT_MAX_AGE
-
-
ATTR_FLUSH
-
-
ATTR_MAX_ENTRIES
-
-
ATTR_MAX_SIZE
-
-
cache
-
-
STATE_TAG
-
-
SimpleCacheFilter()
-
-
getDefaultMaxAge()
-
-
getFlushFlag()
-
-
getMaxEntries()
-
-
getMaxSize()
-
-
ingoingFilter(RequestInterface, FilterInterface[], int)
-
-
initialize(Object[])
- Initialize the frames of that framed resource.
-
outgoingFilter(RequestInterface, ReplyInterface, FilterInterface[], int)
-
cache
protected SimpleCache 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
ATTR_FLUSH
protected static int ATTR_FLUSH
SimpleCacheFilter
public SimpleCacheFilter()
getMaxSize
public int getMaxSize()
getMaxEntries
public int getMaxEntries()
getDefaultMaxAge
public int getDefaultMaxAge()
getFlushFlag
public boolean getFlushFlag()
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
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