| java.lang.Object simple.http.serve.FileContext simple.http.serve.FactoryContext simple.http.serve.CacheContext
All known Subclasses: simple.http.serve.ExtendedContext,
CacheContext | public class CacheContext extends FactoryContext (Code) | | The CacheContext object is used to provide a caching
implementation of the context. This will ensure that frequent
requests for Content objects will hit a cache and
thus require less I/O to fulfill the request. The also provides a
means to share caching across multiple objects, which share the
context. The default maximum cache size is eight kilobytes.
author: Niall Gallagher See Also: simple.http.serve.CacheContentFactory |
CacheContext | public CacheContext()(Code) | | Constructor for the CacheContext object. This is
used to create a context for the current working directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
|
CacheContext | public CacheContext(File base)(Code) | | Constructor for the CacheContext object. This is
used to create a context instance for the specified directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
Parameters: base - this is the directory specifying the context root |
CacheContext | public CacheContext(File base, int size)(Code) | | Constructor for the CacheContext object. This is
used to create a context instance for the specified directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
Parameters: base - this is the directory specifying the context root Parameters: size - this is the maximum file size that will be cached |
CacheContext | public CacheContext(File base, File path)(Code) | | Constructor for the CacheContext object. This is
used to create a context instance for the specified directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
This will make use of one directory to find configuration.
Parameters: base - this is the directory specifying the context root Parameters: path - this is the directory file used for configuration |
CacheContext | public CacheContext(File base, File[] list)(Code) | | Constructor for the CacheContext object. This is
used to create a context instance for the specified directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
This will make use of the file list to find configuration.
Parameters: base - this is the directory specifying the context root Parameters: list - this is the range of files used for configuration |
CacheContext | public CacheContext(File base, File[] list, int size)(Code) | | Constructor for the CacheContext object. This is
used to create a context instance for the specified directory.
This will use a cache that has a default maximum size of eight
kilobytes. Also, items remain cached for at most one minute.
This will make use of the file list to find configuration.
Parameters: base - this is the directory specifying the context root Parameters: size - this is the maximum file size that will be cached Parameters: list - this is the range of files used for configuration |
|
|