use of org.apache.wicket.markup.head.IReferenceHeaderItem in project wicket by apache.
the class ConcatBundleResource method getCacheKey.
@Override
public Serializable getCacheKey() {
ArrayList<Serializable> key = new ArrayList<>(providedResources.size());
for (IReferenceHeaderItem curItem : providedResources) {
Serializable curKey = ((IStaticCacheableResource) curItem.getReference().getResource()).getCacheKey();
if (curKey == null) {
reportError(curItem.getReference(), "Unable to get cache key for ");
return null;
}
key.add(curKey);
}
return key;
}
use of org.apache.wicket.markup.head.IReferenceHeaderItem in project wicket by apache.
the class ConcatBundleResource method collectResourceStreams.
private List<IResourceStream> collectResourceStreams() {
List<IResourceStream> ret = new ArrayList<>(providedResources.size());
for (IReferenceHeaderItem curItem : providedResources) {
IResourceStream stream = ((IStaticCacheableResource) curItem.getReference().getResource()).getResourceStream();
if (stream == null) {
reportError(curItem.getReference(), "Cannot get resource stream for ");
return null;
}
ret.add(stream);
}
return ret;
}
Aggregations