Overview | Package | Class | Use | Tree | Deprecated | Index | Help
|  | Oracle
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## weblogic.cache.filter
Class CacheFilter

    java.lang.Object
      weblogic.cache.filter.CacheFilter

    public class CacheFilter

extends Object

A `Filter` implementation that is able to cache attributes and results from standard requests and responses. To use this filter webapps must specify it in their deployment descriptor. The `CacheFilter` has several configuration options `timeout` the time-to-live on cached entries, by default cached entries never timeout. `max-cache-size` the maximum size of an element that can be cached, by default `MAX_CACHED_SIZE` `size` the size of the cache, default unbounded `scope` the scope of cached values, by default application. `key` FIXME `vars` FIXME `verbose` whether caching operations should be logged, by default off.

Field Summary
`static long` | `MAX_CACHED_SIZE`

Constructor Summary
`CacheFilter()`

Method Summary
`void` | `destroy()` Destroy the CacheFilter
`void` | `doFilter(ServletRequest req, ServletResponse res, FilterChain chain)` Filter and cache servlet requests and responses.
`protected weblogic.cache.webapp.KeySet` | `getKeySet(weblogic.cache.webapp.CacheSystem cs)`
`void` | `init(FilterConfig config)` Initialize the CacheFilter

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### MAX_CACHED_SIZE

    public static final long MAX_CACHED_SIZE

See Also:
  Constant Field Values

Constructor Detail

### CacheFilter

    public CacheFilter()

Method Detail

### getKeySet

    protected weblogic.cache.webapp.KeySet getKeySet(weblogic.cache.webapp.CacheSystem cs)

### init

    public void init(FilterConfig config)
              throws ServletException

  Initialize the CacheFilter

  Parameters:
    `config` -
  Throws:
    `ServletException`

### destroy

    public void destroy()

  Destroy the CacheFilter

### doFilter

    public void doFilter(ServletRequest req,
                         ServletResponse res,
                         FilterChain chain)
                  throws ServletException,
                         IOException

  Filter and cache servlet requests and responses.

  Parameters:
    `req` -
    `res` -
    `chain` -
  Throws:
    `ServletException`
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Documentation is available at http://edocs.bea.com/wls/docs103 Copyright 1996,2008, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD