| Modifier and Type | Class and Description |
|---|---|
| public class | ResourceCache.
MetaData associated with a context Resource. |
| public class | ResourceCache.
MetaData associated with a context Resource. |
| Modifier and Type | Field and Description |
|---|---|
| protected transient Map | |
| protected transient int | |
| protected transient int | |
| protected transient ResourceCache. | |
| private int | |
| private int | |
| private int | |
| private MimeTypes | |
| protected transient ResourceCache. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public void | |
| protected void | |
| public void | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| private ResourceCache. | |
| public ResourceCache. | Returns: The entry matchingpathInContext, or a new entry if no matching entry was foundThe key into the cache pathInContext, ResourceFactory If no matching entry is found, this factory)ResourceFactory will be used to create the Resource
for the new enry that is created.Get a Entry from the cache. |
| public ResourceCache. | |
| public void | |
| public void | |
| public void | |
| public void |
| _cache | back to summary |
|---|---|
| protected transient Map<K, V> _cache | |
| _cachedFiles | back to summary |
|---|---|
| protected transient int _cachedFiles | |
| _cachedSize | back to summary |
|---|---|
| protected transient int _cachedSize | |
| _leastRecentlyUsed | back to summary |
|---|---|
| protected transient ResourceCache. | |
| _maxCachedFiles | back to summary |
|---|---|
| private int _maxCachedFiles | |
| _maxCachedFileSize | back to summary |
|---|---|
| private int _maxCachedFileSize | |
| _maxCacheSize | back to summary |
|---|---|
| private int _maxCacheSize | |
| _mimeTypes | back to summary |
|---|---|
| private MimeTypes _mimeTypes | |
| _mostRecentlyUsed | back to summary |
|---|---|
| protected transient ResourceCache. | |
| ResourceCache | back to summary |
|---|---|
| public ResourceCache(MimeTypes mimeTypes) Constructor. | |
| doStart | back to summary |
|---|---|
| public synchronized void doStart() throws Exception | |
| doStop | back to summary |
|---|---|
| public void doStop() throws InterruptedException Overrides org. Stop the context. | |
| fill | back to summary |
|---|---|
| protected void fill(ResourceCache. | |
| flushCache | back to summary |
|---|---|
| public void flushCache() | |
| getCachedFiles | back to summary |
|---|---|
| public int getCachedFiles() | |
| getCachedSize | back to summary |
|---|---|
| public int getCachedSize() | |
| getMaxCachedFiles | back to summary |
|---|---|
public int getMaxCachedFiles()
| |
| getMaxCachedFileSize | back to summary |
|---|---|
| public int getMaxCachedFileSize() | |
| getMaxCacheSize | back to summary |
|---|---|
| public int getMaxCacheSize() | |
| load | back to summary |
|---|---|
| private ResourceCache. | |
| lookup | back to summary |
|---|---|
| public ResourceCache. Get a Entry from the cache. Get either a valid entry object or create a new one if possible.
| |
| lookup | back to summary |
|---|---|
| public ResourceCache. | |
| miss | back to summary |
|---|---|
| public void miss(String pathInContext, Resource resource) throws IOException Remember a Resource Miss! | |
| setMaxCachedFiles | back to summary |
|---|---|
public void setMaxCachedFiles(int maxCachedFiles)
| |
| setMaxCachedFileSize | back to summary |
|---|---|
| public void setMaxCachedFileSize(int maxCachedFileSize) | |
| setMaxCacheSize | back to summary |
|---|---|
| public void setMaxCacheSize(int maxCacheSize) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Buffer | |
| pack-priv Buffer | |
| pack-priv String | |
| pack-priv long | |
| pack-priv Buffer | |
| pack-priv boolean | |
| pack-priv ResourceCache. | |
| pack-priv ResourceCache. | |
| pack-priv Resource |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public Buffer | |
| public long | |
| public Buffer | |
| public InputStream | |
| public String | |
| public Buffer | |
| public Resource | |
| public void | |
| public boolean | |
| public boolean | |
| pack-priv boolean | |
| public void | |
| public void | |
| public void | |
| public void |
| _buffer | back to summary |
|---|---|
| pack-priv Buffer _buffer | |
| _contentType | back to summary |
|---|---|
| pack-priv Buffer _contentType | |
| _key | back to summary |
|---|---|
| pack-priv String _key | |
| _lastModified | back to summary |
|---|---|
| pack-priv long _lastModified | |
| _lastModifiedBytes | back to summary |
|---|---|
| pack-priv Buffer _lastModifiedBytes | |
| _locked | back to summary |
|---|---|
| pack-priv boolean _locked | |
| _next | back to summary |
|---|---|
| pack-priv ResourceCache. | |
| _prev | back to summary |
|---|---|
| pack-priv ResourceCache. | |
| _resource | back to summary |
|---|---|
| pack-priv Resource _resource | |
| Content | back to summary |
|---|---|
| pack-priv Content(Resource resource) | |
| cache | back to summary |
|---|---|
| pack-priv void cache(String pathInContext) | |
| getBuffer | back to summary |
|---|---|
| public Buffer getBuffer() Implements org. | |
| getContentLength | back to summary |
|---|---|
| public long getContentLength() Implements org. | |
| getContentType | back to summary |
|---|---|
| public Buffer getContentType() Implements org. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Implements org. | |
| getKey | back to summary |
|---|---|
| public String getKey() | |
| getLastModified | back to summary |
|---|---|
| public Buffer getLastModified() Implements org. | |
| getResource | back to summary |
|---|---|
| public Resource getResource() Implements org. | |
| invalidate | back to summary |
|---|---|
| public void invalidate() | |
| isCached | back to summary |
|---|---|
| public boolean isCached() | |
| isLocked | back to summary |
|---|---|
public boolean isLocked()
| |
| isValid | back to summary |
|---|---|
| pack-priv boolean isValid() | |
| release | back to summary |
|---|---|
| public void release() Implements org. | |
| setBuffer | back to summary |
|---|---|
| public void setBuffer(Buffer buffer) | |
| setContentType | back to summary |
|---|---|
| public void setContentType(Buffer type) | |
| setLocked | back to summary |
|---|---|
public void setLocked(boolean locked)
| |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean |
| Miss | back to summary |
|---|---|
| pack-priv Miss(Resource resource) | |
| isValid | back to summary |
|---|---|
| pack-priv boolean isValid() | |