Class w3c.www.protocol.http.cache.CachedResourceFactory
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.www.protocol.http.cache.CachedResourceFactory

java.lang.Object
   |
   +----w3c.www.protocol.http.cache.CachedResourceFactory

public class CachedResourceFactory
extends Object
The factory for cache entries. All cache entries have to be sub-classes of CachedResource, that's the only limitation to the fun you can have down here.

Constructor Index

 o CachedResourceFactory()

Method Index

 o createResource(CacheFilter, Request, Reply)
Create a suitable instance of some subclass of CachedResource.

Constructors

 o CachedResourceFactory
  public CachedResourceFactory()

Methods

 o createResource
  public static CachedResource createResource(CacheFilter filter,
                                              Request request,
                                              Reply reply) throws IOException
Create a suitable instance of some subclass of CachedResource.
Parameters:
filter - The cache filter that ones to create a new entry.
request - The original request we emitted.
reply - The reply we got from the origin server.
Returns:
An instance of CachedResource, or null if no resource was created.

All Packages  Class Hierarchy  This Package  Previous  Next  Index