|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wso2.carbon.registry.app.CachedResources
public class CachedResources
Implementation to cache resources along with an Entity Tag.
| Constructor Summary | |
|---|---|
CachedResources()
Default constructor which initializes cache. |
|
| Method Summary | |
|---|---|
boolean |
cacheResource(String path,
Resource resource,
String eTag,
long size)
Method to cache a given resource along with an Entity Tag. |
Resource |
getCachedResource(String path)
Method to fetch a cached resource. |
String |
getETag(String path)
Returns the Entity Tag corresponding to the given path. |
int |
getSizeOfCache()
Method to obtain the size of the cache. |
boolean |
isResourceCached(String path)
Method to determine whether the resource at the given path is cached. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedResources()
| Method Detail |
|---|
public boolean isResourceCached(String path)
path - the resource path.
public boolean cacheResource(String path,
Resource resource,
String eTag,
long size)
path - the resource path.resource - the resource to cache.eTag - the entity tag.size - the maximum cache size.
public Resource getCachedResource(String path)
path - the resource path.
public String getETag(String path)
path - the resource path.
public int getSizeOfCache()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||