");
}
Set set = cache.getCachedResources(cms);
if (cache.cacheOffline()) {
List online = new ArrayList();
List offline = new ArrayList();
Iterator i = set.iterator();
while(i.hasNext()) {
String resource = (String)i.next();
if (resource.endsWith(cache.C_CACHE_OFFLINESUFFIX)) {
offline.add(resource);
} else {
online.add(resource);
}
}
Collections.sort(offline);
Collections.sort(online);
out.write("
"+messages.key("flexcache.admin.online")+"
");
i = online.iterator();
while(i.hasNext()) {
String resource = (String)i.next();
out.write(messages.key("flexcache.admin.resource")+": " + resource + " "+messages.key("flexcache.admin.key")+": " + cache.getCachedKey(resource, cms) + " ");
if (showall) {
Set variations = cache.getCachedVariations(resource, cms);
if (variations.size() > 0) {
List outlist = new ArrayList();
for(Iterator j = variations.iterator(); j.hasNext(); outlist.add(j.next()));
Collections.sort(outlist);
Iterator s = outlist.iterator();
while (s.hasNext()) {
String v = (String)s.next();
out.write(" "+messages.key("flexcache.admin.variant")+": " + v + " ");
}
}
}
}
if (online.size() == 0) out.write(messages.key("flexcache.admin.err_online"));
out.write("
"+messages.key("flexcache.admin.offline")+"
");
i = offline.iterator();
while(i.hasNext()) {
String resource = (String)i.next();
out.write(messages.key("flexcache.admin.resource")+": " + resource + " "+messages.key("flexcache.admin.key")+": " + cache.getCachedKey(resource, cms) + " ");
if (showall) {
Set variations = cache.getCachedVariations(resource, cms);
if (variations.size() > 0) {
List outlist = new ArrayList();
for(Iterator j = variations.iterator(); j.hasNext(); outlist.add(j.next()));
Collections.sort(outlist);
Iterator s = outlist.iterator();
while (s.hasNext()) {
String v = (String)s.next();
out.write(" "+messages.key("flexcache.admin.variant")+": " + v + " ");
}
}
}
}
if (offline.size() == 0) out.write(messages.key("flexcache.admin.err_offline"));
} else {
List online = new ArrayList();
online.addAll(set);
Collections.sort(online);
Iterator i = online.iterator();
while(i.hasNext()) {
String resource = (String)i.next();
out.write(messages.key("flexcache.admin.resource")+": " + resource + " "+messages.key("flexcache.admin.key")+": " + cache.getCachedKey(resource, cms) + " ");
if (showall) {
Set variations = cache.getCachedVariations(resource, cms);
if (variations.size() > 0) {
List outlist = new ArrayList();
for(Iterator j = variations.iterator(); j.hasNext(); outlist.add(j.next()));
Collections.sort(outlist);
Iterator s = outlist.iterator();
while (s.hasNext()) {
String v = (String)s.next();
out.write(" "+messages.key("flexcache.admin.variant")+": " + v + " ");
}
}
}
}
if (set.size() == 0) out.write(messages.key("flexcache.admin.err_empty"));
}
}
}
%>